Commit 11a0372a authored by 郭燕飞's avatar 郭燕飞 💬

version

parent 2cab5b46
buildscript { buildscript {
ext {
springBootVersion = "1.5.22.RELEASE" ext["duibaExtVersion"] = "1.3.25"
} ext["springBootVersion"] = "1.5.22.RELEASE"
ext["springCloudVersion"] = "Edgware.SR6"
ext["hazelcast.version"] = "3.11"
repositories { repositories {
maven { url "http://nexus.dui88.com:8081/nexus/content/groups/public/" } maven { url "http://nexus.dui88.com:8081/nexus/content/groups/public/" }
maven { url "https://plugins.gradle.org/m2/" } //sonarqube maven { url "https://plugins.gradle.org/m2/" } //sonarqube
...@@ -9,17 +12,17 @@ buildscript { ...@@ -9,17 +12,17 @@ buildscript {
mavenCentral() mavenCentral()
mavenLocal() mavenLocal()
} }
dependencies { dependencies {
classpath "io.spring.gradle:dependency-management-plugin:1.0.5.RELEASE" classpath "io.spring.gradle:dependency-management-plugin:1.0.5.RELEASE"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.5" //sonarqube
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}" classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath "org.springframework.build.gradle:propdeps-plugin:0.0.7" classpath "org.springframework.build.gradle:propdeps-plugin:0.0.7"
classpath "cn.com.duiba:duiba-gradle-plugin:0.1.7" classpath "cn.com.duiba:duiba-gradle-plugin:0.1.9"
} }
} }
plugins { apply plugin: "org.sonarqube"
id 'org.sonarqube' version '2.5'
}
sonarqube { sonarqube {
properties { properties {
property "sonar.projectName", "{artifactId}" property "sonar.projectName", "{artifactId}"
...@@ -29,8 +32,6 @@ sonarqube { ...@@ -29,8 +32,6 @@ sonarqube {
} }
} }
ext['hazelcast.version']='3.11'
allprojects { allprojects {
apply plugin: "duiba.gradle.plugin" apply plugin: "duiba.gradle.plugin"
apply plugin: "maven" apply plugin: "maven"
...@@ -56,18 +57,19 @@ subprojects { ...@@ -56,18 +57,19 @@ subprojects {
all*.exclude group: "log4j", module:"log4j" all*.exclude group: "log4j", module:"log4j"
all*.exclude group: "org.slf4j", module: "slf4j-log4j12" all*.exclude group: "org.slf4j", module: "slf4j-log4j12"
all*.exclude group: "javax.servlet", module: "servlet-api" //servlet 2.5 all*.exclude group: "javax.servlet", module: "servlet-api" //servlet 2.5
all*.exclude group: 'com.alibaba', module: 'dubbo' all*.exclude group: "com.alibaba", module: "dubbo"
} }
dependencyManagement { dependencyManagement {
dependencies {
dependencies {
imports { imports {
mavenBom "cn.com.duiba.boot:spring-boot-ext-dependencies:1.3.25" mavenBom "cn.com.duiba.boot:spring-boot-ext-dependencies:${duibaExtVersion}"
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}" mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
mavenBom "org.springframework.cloud:spring-cloud-dependencies:Edgware.SR6" mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
} }
} }
} }
repositories { repositories {
......
rootProject.name = '{artifactId}' rootProject.name = "{artifactId}"
include ':{artifactId}-biz' include ":{artifactId}-biz"
include ':{artifactId}-api' include ":{artifactId}-api"
buildscript { buildscript {
ext {
springBootVersion = "1.5.22.RELEASE" ext["duibaExtVersion"] = "1.3.25"
} ext["springBootVersion"] = "1.5.22.RELEASE"
ext["springCloudVersion"] = "Edgware.SR6"
ext["hazelcast.version"] = "3.11"
repositories { repositories {
maven { url "http://nexus.dui88.com:8081/nexus/content/groups/public/" } maven { url "http://nexus.dui88.com:8081/nexus/content/groups/public/" }
maven { url "https://plugins.gradle.org/m2/" } //sonarqube maven { url "https://plugins.gradle.org/m2/" } //sonarqube
...@@ -9,17 +12,17 @@ buildscript { ...@@ -9,17 +12,17 @@ buildscript {
mavenCentral() mavenCentral()
mavenLocal() mavenLocal()
} }
dependencies { dependencies {
classpath "io.spring.gradle:dependency-management-plugin:1.0.5.RELEASE" classpath "io.spring.gradle:dependency-management-plugin:1.0.5.RELEASE"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.5" //sonarqube
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}" classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath "org.springframework.build.gradle:propdeps-plugin:0.0.7" classpath "org.springframework.build.gradle:propdeps-plugin:0.0.7"
classpath "cn.com.duiba:duiba-gradle-plugin:0.1.7" classpath "cn.com.duiba:duiba-gradle-plugin:0.1.9"
} }
} }
plugins { apply plugin: 'org.sonarqube'
id 'org.sonarqube' version '2.5'
}
sonarqube { sonarqube {
properties { properties {
property "sonar.projectName", "{artifactId}" property "sonar.projectName", "{artifactId}"
...@@ -29,8 +32,6 @@ sonarqube { ...@@ -29,8 +32,6 @@ sonarqube {
} }
} }
ext['hazelcast.version']='3.11'
apply plugin: "duiba.gradle.plugin" apply plugin: "duiba.gradle.plugin"
apply plugin: "maven" apply plugin: "maven"
apply plugin: "java" apply plugin: "java"
...@@ -59,7 +60,7 @@ configurations { ...@@ -59,7 +60,7 @@ configurations {
all*.exclude group: "log4j", module: "log4j" all*.exclude group: "log4j", module: "log4j"
all*.exclude group: "org.slf4j", module: "slf4j-log4j12" all*.exclude group: "org.slf4j", module: "slf4j-log4j12"
all*.exclude group: "javax.servlet", module: "servlet-api" //servlet 2.5 all*.exclude group: "javax.servlet", module: "servlet-api" //servlet 2.5
all*.exclude group: 'com.alibaba', module: 'dubbo' all*.exclude group: "com.alibaba", module: "dubbo"
} }
repositories { repositories {
...@@ -71,14 +72,15 @@ repositories { ...@@ -71,14 +72,15 @@ repositories {
} }
dependencyManagement { dependencyManagement {
dependencies {
dependencies {
imports { imports {
mavenBom "cn.com.duiba.boot:spring-boot-ext-dependencies:1.3.25" mavenBom "cn.com.duiba.boot:spring-boot-ext-dependencies:${duibaExtVersion}"
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}" mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
mavenBom "org.springframework.cloud:spring-cloud-dependencies:Edgware.SR6" mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
} }
} }
} }
dependencies { dependencies {
......
rootProject.name = '{artifactId}' rootProject.name = "{artifactId}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment