buildscript { repositories { mavenLocal() maven { url "http://maven.aliyun.com/nexus/content/groups/public" } mavenCentral() } dependencies { classpath("$bootGroup:spring-boot-gradle-plugin:$springBootVersion") } } apply plugin: "$bootGroup" apply plugin: 'io.spring.dependency-management' bootJar.enabled = false jar.enabled = true dependencies { compile project(":common:utils") compile project(":common:data") compile project(":dao:dao-interface") compile fileTree(dir: 'src/main/lib', include: '*.jar') compile("$bootGroup:spring-boot-starter-log4j2") testCompile("$bootGroup:spring-boot-starter-test") // https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt compile group: 'io.jsonwebtoken', name: 'jjwt', version: '0.9.0' }