group 'SmartVenue' version '1.0-SNAPSHOT' apply plugin: 'java' sourceCompatibility = 1.8 repositories { //mavenCentral() maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' } } dependencies { testCompile group: 'junit', name: 'junit', version: '4.12' } tasks.withType(JavaCompile) { options.encoding = "UTF-8" }