Commit cea7e45e authored by 郭燕飞's avatar 郭燕飞 💬

解决SNAPSHOT不找最新版的问题

parent 187d1f3d
buildscript { buildscript {
ext["duibaExtVersion"] = "2.0.0-h63" ext["duibaExtVersion"] = "2.0.0-h69"
ext["springBootVersion"] = "2.2.7.RELEASE" ext["springBootVersion"] = "2.2.7.RELEASE"
ext["springCloudVersion"] = "Hoxton.SR6" ext["springCloudVersion"] = "Hoxton.SR6"
ext["hazelcast.version"] = "3.11" ext["hazelcast.version"] = "3.11"
...@@ -57,13 +57,17 @@ subprojects { ...@@ -57,13 +57,17 @@ subprojects {
sourceCompatibility = 1.8 sourceCompatibility = 1.8
targetCompatibility = 1.8 targetCompatibility = 1.8
configurations{ configurations.all {
all*.exclude group: "log4j", module:"log4j" exclude group: "log4j", module: "log4j"
all*.exclude group: "org.slf4j", module: "slf4j-log4j12" exclude group: "org.slf4j", module: "slf4j-log4j12"
all*.exclude group: "javax.servlet", module: "servlet-api" //servlet 2.5 exclude group: "javax.servlet", module: "servlet-api" //servlet 2.5
all*.exclude group: "com.alibaba", module: "dubbo" exclude group: "com.fasterxml.jackson.dataformat", module: "jackson-dataformat-xml"
all*.exclude group: "com.fasterxml.jackson.dataformat", module: "jackson-dataformat-xml" exclude group: "com.alibaba", module: "dubbo"
all*.exclude group: "com.zaxxer", module: "HikariCP-java7" exclude group: "com.zaxxer", module: "HikariCP-java7"
resolutionStrategy { // 解决SNAPSHOT包不拉最新版的问题
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
} }
dependencyManagement { dependencyManagement {
......
buildscript { buildscript {
ext["duibaExtVersion"] = "2.0.0-h63" ext["duibaExtVersion"] = "2.0.0-h69"
ext["springBootVersion"] = "2.2.7.RELEASE" ext["springBootVersion"] = "2.2.7.RELEASE"
ext["springCloudVersion"] = "Hoxton.SR6" ext["springCloudVersion"] = "Hoxton.SR6"
ext["hazelcast.version"] = "3.11" ext["hazelcast.version"] = "3.11"
...@@ -60,13 +60,17 @@ bootJar { ...@@ -60,13 +60,17 @@ bootJar {
archiveName = "{artifactId}.jar" archiveName = "{artifactId}.jar"
} }
configurations { configurations.all {
all*.exclude group: "log4j", module: "log4j" exclude group: "log4j", module: "log4j"
all*.exclude group: "org.slf4j", module: "slf4j-log4j12" exclude group: "org.slf4j", module: "slf4j-log4j12"
all*.exclude group: "javax.servlet", module: "servlet-api" //servlet 2.5 exclude group: "javax.servlet", module: "servlet-api" //servlet 2.5
all*.exclude group: "com.alibaba", module: "dubbo" exclude group: "com.fasterxml.jackson.dataformat", module: "jackson-dataformat-xml"
all*.exclude group: "com.fasterxml.jackson.dataformat", module: "jackson-dataformat-xml" exclude group: "com.alibaba", module: "dubbo"
all*.exclude group: "com.zaxxer", module: "HikariCP-java7" exclude group: "com.zaxxer", module: "HikariCP-java7"
resolutionStrategy { // 解决SNAPSHOT包不拉最新版的问题
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
} }
repositories { repositories {
......
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