buildscript { ext { springBootVersion = '1.5.3.RELEASE' // 0.12.0 升级到了 Gradle 3.4,Gradle 2.14.1 只能使用 0.11.0及以下 dockerVersion = '0.11.0' dcokerRegistry = "10.10.100.200:5000" } repositories { maven { url "https://plugins.gradle.org/m2/" } maven { url "http://maven.aliyun.com/nexus/content/groups/public/" } mavenCentral() jcenter() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") classpath("gradle.plugin.com.palantir.gradle.docker:gradle-docker:${dockerVersion}") } } group 'com.uas.demo.im' version '0.2.0' apply plugin: 'java' apply plugin: "com.palantir.docker" apply plugin: "org.springframework.boot" apply from: "$rootDir/gradle/tasks.gradle" apply from: "$rootDir/gradle/dependencies-base.gradle" allprojects { sourceCompatibility = 1.8 targetCompatibility = 1.8 } jar { baseName = project.name version = '' } dependencies { compile("org.springframework.boot:spring-boot-starter-web") compile("org.springframework.boot:spring-boot-starter-thymeleaf") compile("org.springframework.boot:spring-boot-starter-data-jpa") compile("org.springframework.boot:spring-boot-starter-data-mongodb") compile("commons-fileupload:commons-fileupload:1.3.1") compile("com.oracle:ojdbc6:11.2.0") compile("org.webjars:webjars-locator") compile("org.webjars:bootstrap:3.3.7") compile("org.webjars:jquery:3.1.0") compile("org.springframework.boot:spring-boot-starter-actuator") testCompile("org.springframework.boot:spring-boot-starter-test") }