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

解决SNAPSHOT不找最新版的问题

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