|
@@ -1,41 +1,38 @@
|
|
|
buildscript {
|
|
|
- ext {
|
|
|
- springBootVersion = '1.4.4.RELEASE'
|
|
|
- springloadedVersion = '1.2.6.RELEASE'
|
|
|
- }
|
|
|
- repositories {
|
|
|
- mavenCentral()
|
|
|
- jcenter()
|
|
|
- }
|
|
|
- dependencies {
|
|
|
- classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
|
|
- }
|
|
|
+ ext {
|
|
|
+ springBootVersion = '1.4.4.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.cloud.mall'
|
|
|
-version = '0.1'
|
|
|
+group 'com.uas.cloud.mall'
|
|
|
+version '0.0.1'
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
-apply plugin: 'org.springframework.boot'
|
|
|
+apply plugin: "com.palantir.docker"
|
|
|
+apply plugin: "org.springframework.boot"
|
|
|
|
|
|
-sourceCompatibility = 1.8 // 必须在apply java插件之后
|
|
|
-targetCompatibility = 1.8
|
|
|
+apply from: "$rootDir/gradle/tasks.gradle"
|
|
|
+apply from: "$rootDir/gradle/dependencies-base.gradle"
|
|
|
|
|
|
-repositories {
|
|
|
- mavenCentral()
|
|
|
+allprojects {
|
|
|
+ sourceCompatibility = 1.8
|
|
|
}
|
|
|
|
|
|
-dependencyManagement {
|
|
|
- imports {
|
|
|
- mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Camden.SR5'
|
|
|
- }
|
|
|
-}
|
|
|
dependencies {
|
|
|
- compile "org.springframework.boot:spring-boot-starter-data-jpa"
|
|
|
- compile "mysql:mysql-connector-java:5.1.21"
|
|
|
- compile 'org.springframework.cloud:spring-cloud-starter-config'
|
|
|
- compile "org.springframework.cloud:spring-cloud-starter-eureka"
|
|
|
- compile "com.alibaba:fastjson:1.2.24"
|
|
|
- compile("org.springframework.boot:spring-boot-devtools")
|
|
|
- testCompile 'org.springframework.boot:spring-boot-starter-test'
|
|
|
+ compile "org.springframework.boot:spring-boot-starter-data-jpa"
|
|
|
+ compile "mysql:mysql-connector-java:5.1.21"
|
|
|
+ compile "com.alibaba:fastjson:1.2.24"
|
|
|
}
|