buildscript { ext { springBootVersion = '1.4.4.RELEASE' } repositories { mavenLocal() mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } } group 'com.uas.cloud.mall' version '1.0-SNAPSHOT' apply plugin: 'java' apply plugin: 'org.springframework.boot' repositories { mavenLocal() jcenter() maven { url 'http://10.10.101.21:8081/artifactory/libs-release' } maven { url 'http://10.10.101.21:8081/artifactory/libs-snapshot' } mavenCentral() } sourceCompatibility = 1.8 targetCompatibility = 1.8 dependencyManagement { imports { mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Camden.SR5' } } dependencies { compile ("org.springframework.cloud:spring-cloud-starter-eureka") compile("org.springframework.boot:spring-boot-starter-web") compile("org.springframework.boot:spring-boot-starter-data-jpa") compile("com.uas.cloud.mall:commons:0.0.1"){ exclude(module: 'servlet-api') } compile ("io.springfox:springfox-swagger2:2.4.0") compile ("io.springfox:springfox-swagger-ui:2.4.0") runtime("com.oracle:ojdbc6:11.2.0") }