|
|
@@ -1,61 +1,63 @@
|
|
|
-// 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://113.105.74.141:8081/artifactory/libs-release-local' }
|
|
|
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}"
|
|
|
+ classpath 'com.uas.demo.mesh:spring-boot-docker-plugin:1.0.0'
|
|
|
+ classpath "org.springframework.boot:spring-boot-gradle-plugin:1.5.6.RELEASE"
|
|
|
}
|
|
|
}
|
|
|
|
|
|
group 'com.uas.cloud.mall'
|
|
|
-version '0.1.5'
|
|
|
+version '0.1.6-MESH'
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
apply plugin: 'maven'
|
|
|
-apply plugin: "com.palantir.docker"
|
|
|
apply plugin: "org.springframework.boot"
|
|
|
+apply plugin: 'com.uas.docker.spring.boot'
|
|
|
|
|
|
-apply from: "$rootDir/gradle/tasks.gradle"
|
|
|
-apply from: "$rootDir/gradle/dependencies-base.gradle"
|
|
|
+sourceCompatibility = 1.8
|
|
|
|
|
|
-jar {
|
|
|
- baseName = project.name
|
|
|
- version = ''
|
|
|
+repositories {
|
|
|
+ maven { url 'http://10.10.101.21:8081/artifactory/libs-snapshot' }
|
|
|
+ maven { url 'http://10.10.101.21:8081/artifactory/libs-release' }
|
|
|
+ maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
|
|
|
+ jcenter()
|
|
|
+ mavenCentral()
|
|
|
}
|
|
|
|
|
|
-allprojects {
|
|
|
- sourceCompatibility = 1.8
|
|
|
+dependencyManagement {
|
|
|
+ imports {
|
|
|
+ mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Camden.SR5'
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
dependencies {
|
|
|
+ compile "org.springframework.boot:spring-boot-starter-web"
|
|
|
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"
|
|
|
+ testCompile "org.springframework.boot:spring-boot-starter-test"
|
|
|
+}
|
|
|
+
|
|
|
+customDocker {
|
|
|
+ baseImage 'hub.c.163.com/library/java:8-jre-alpine'
|
|
|
+ registry '10.10.100.200:5000'
|
|
|
}
|
|
|
-compileJava.dependsOn(processResources)
|
|
|
|
|
|
uploadArchives {
|
|
|
repositories {
|