// Gradle build file for Gradle 2.14.1 // Created by huxz on 2017-3-17 13:38:59 buildscript { ext { springBootVersion = '1.4.4.RELEASE' // 0.12.0 升级到了 Gradle 3.4,Gradle 2.14.1 只能使用 0.11.0及以下 dockerVersion = '0.12.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.cloud.mall' version '0.1.5' apply plugin: 'java' apply plugin: 'maven' apply plugin: "com.palantir.docker" apply plugin: "org.springframework.boot" apply from: "$rootDir/gradle/tasks.gradle" apply from: "$rootDir/gradle/dependencies-base.gradle" jar { baseName = project.name version = '' } allprojects { sourceCompatibility = 1.8 } dependencies { compile("org.springframework.boot:spring-boot-starter-thymeleaf") // Spring Boot will create a MultipartConfigElement bean and make itself ready for file uploads. compile("org.springframework.cloud:spring-cloud-starter-feign") compile("org.springframework.cloud:spring-cloud-starter-ribbon") compile("org.springframework.cloud:spring-cloud-starter-hystrix") compile "com.uas.cloud.base.commons:common:0.1.0" compile("org.springframework.boot:spring-boot-devtools") compile("org.springframework.boot:spring-boot-starter-actuator") compile("org.webjars:webjars-locator") compile "org.springframework.boot:spring-boot-configuration-processor" compile "commons-fileupload:commons-fileupload:1.3.1" // compile "io.github.openfeign.form:feign-form:2.1.0" // compile "io.github.openfeign.form:feign-form-spring:2.1.0" } compileJava.dependsOn(processResources) uploadArchives { repositories { mavenDeployer { repository(url: "http://10.10.101.21:8081/artifactory/libs-release-local") { authentication(userName: "yingp", password: "111111") } } } }.dependsOn build