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("$bootGroup:spring-boot-starter-data-jpa:$springBootVersion") compile("$bootGroup:spring-boot-starter-cache:$springBootVersion") compile("$bootGroup:spring-boot-starter-jdbc:$springBootVersion") }