Gradle:更改特定的依赖项,但不更改其依赖项或可传递依赖项

时间:2020-04-17 13:08:00

标签: gradle build.gradle netty gradle-plugin gradlew

部分依赖树就像

|    |    +--- org.springframework.cloud:spring-cloud-starter:1.2.0.RELEASE (*)
|    |    +--- org.springframework.cloud:spring-cloud-netflix-core:1.3.0.RELEASE (*)
|    |    +--- org.springframework.cloud:spring-cloud-starter-archaius:1.3.0.RELEASE (*)
|    |    +--- com.netflix.ribbon:ribbon:2.2.2
|    |    |    +--- com.netflix.ribbon:ribbon-core:2.2.2
|    |    |    |    +--- org.slf4j:slf4j-api:1.6.4 -> 1.7.26
|    |    |    |    +--- com.google.code.findbugs:annotations:2.0.0
|    |    |    |    +--- com.google.guava:guava:16.0 -> 18.0
|    |    |    |    +--- commons-configuration:commons-configuration:1.8 (*)
|    |    |    |    +--- commons-lang:commons-lang:2.6
|    |    |    |    \--- com.netflix.archaius:archaius-core:0.7.4 (*)
|    |    |    +--- com.netflix.ribbon:ribbon-transport:2.2.2
|    |    |    |    +--- com.netflix.ribbon:ribbon-core:2.2.2 (*)
|    |    |    |    +--- com.netflix.ribbon:ribbon-loadbalancer:2.2.2
|    |    |    |    |    +--- com.netflix.ribbon:ribbon-core:2.2.2 (*)
|    |    |    |    |    +--- com.netflix.netflix-commons:netflix-statistics:0.1.1
|    |    |    |    |    |    +--- org.slf4j:slf4j-api:1.6.4 -> 1.7.26
|    |    |    |    |    |    \--- com.google.code.findbugs:annotations:2.0.0
|    |    |    |    |    +--- io.reactivex:rxjava:1.0.9 -> 1.1.10
|    |    |    |    |    +--- org.slf4j:slf4j-api:1.7.12 -> 1.7.26
|    |    |    |    |    +--- com.netflix.servo:servo-core:0.10.1
|    |    |    |    |    |    +--- org.slf4j:slf4j-api:1.7.12 -> 1.7.26
|    |    |    |    |    |    +--- com.google.guava:guava:16.0.1 -> 18.0
|    |    |    |    |    |    +--- com.google.code.findbugs:annotations:2.0.0
|    |    |    |    |    |    \--- com.netflix.servo:servo-internal:0.10.1
|    |    |    |    |    |         +--- org.slf4j:slf4j-api:1.7.12 -> 1.7.26
|    |    |    |    |    |         +--- com.google.guava:guava:16.0.1 -> 18.0
|    |    |    |    |    |         \--- com.google.code.findbugs:annotations:2.0.0
|    |    |    |    |    +--- com.google.guava:guava:16.0.1 -> 18.0
|    |    |    |    |    +--- com.netflix.archaius:archaius-core:0.7.4 (*)
|    |    |    |    |    \--- com.netflix.netflix-commons:netflix-commons-util:0.1.1
|    |    |    |    |         \--- org.slf4j:slf4j-api:1.6.4 -> 1.7.26
|    |    |    |    +--- io.reactivex:rxjava:1.0.10 -> 1.1.10
|    |    |    |    +--- io.reactivex:rxnetty:0.4.9
|    |    |    |    |    +--- io.reactivex:rxjava:1.0.10 -> 1.1.10
|    |    |    |    |    +--- io.netty:netty-codec-http:4.0.27.Final
|    |    |    |    |    |    +--- io.netty:netty-codec:4.0.27.Final
|    |    |    |    |    |    |    \--- io.netty:netty-transport:4.0.27.Final
|    |    |    |    |    |    |         \--- io.netty:netty-buffer:4.0.27.Final
|    |    |    |    |    |    |              \--- io.netty:netty-common:4.0.27.Final
|    |    |    |    |    |    \--- io.netty:netty-handler:4.0.27.Final
|    |    |    |    |    |         +--- io.netty:netty-buffer:4.0.27.Final (*)
|    |    |    |    |    |         +--- io.netty:netty-transport:4.0.27.Final (*)
|    |    |    |    |    |         \--- io.netty:netty-codec:4.0.27.Final (*)

现在我只想将netty-handler:4.0.27.Final更改为netty-handler:4.0.37.Final

当我进行更改时,它就是更改

喜欢 编译组:“ io.netty”,名称:“ netty-handler”,版本:“ 4.0.37.Final”

不仅要更改netty-handler,还要更改其依赖的jar版本4.0.37。

在这里,我只想将netty-handler:4.0.27.Final更改为netty-handler:4.0.37.Final。

您可以在下面看到它也在更改这些jar版本。 **

+--- io.netty:netty-common:4.0.27.Final -> 4.0.37.Final
|    |    |    |    |    |    +--- io.netty:netty-buffer:4.0.27.Final -> 4.0.37.Final (*)
|    |    |    |    |    |    \--- io.netty:netty-transport:4.0.27.Final -> 4.0.37.Final (*)

**

|    |    +--- org.springframework.cloud:spring-cloud-starter:1.2.0.RELEASE (*)
|    |    +--- org.springframework.cloud:spring-cloud-netflix-core:1.3.0.RELEASE (*)
|    |    +--- org.springframework.cloud:spring-cloud-starter-archaius:1.3.0.RELEASE (*)
|    |    +--- com.netflix.ribbon:ribbon:2.2.2
|    |    |    +--- com.netflix.ribbon:ribbon-core:2.2.2
|    |    |    |    +--- org.slf4j:slf4j-api:1.6.4 -> 1.7.26
|    |    |    |    +--- com.google.code.findbugs:annotations:2.0.0
|    |    |    |    +--- com.google.guava:guava:16.0 -> 18.0
|    |    |    |    +--- commons-configuration:commons-configuration:1.8 (*)
|    |    |    |    +--- commons-lang:commons-lang:2.6
|    |    |    |    \--- com.netflix.archaius:archaius-core:0.7.4 (*)
|    |    |    +--- com.netflix.ribbon:ribbon-transport:2.2.2
|    |    |    |    +--- com.netflix.ribbon:ribbon-core:2.2.2 (*)
|    |    |    |    +--- com.netflix.ribbon:ribbon-loadbalancer:2.2.2
|    |    |    |    |    +--- com.netflix.ribbon:ribbon-core:2.2.2 (*)
|    |    |    |    |    +--- com.netflix.netflix-commons:netflix-statistics:0.1.1
|    |    |    |    |    |    +--- org.slf4j:slf4j-api:1.6.4 -> 1.7.26
|    |    |    |    |    |    \--- com.google.code.findbugs:annotations:2.0.0
|    |    |    |    |    +--- io.reactivex:rxjava:1.0.9 -> 1.1.10
|    |    |    |    |    +--- org.slf4j:slf4j-api:1.7.12 -> 1.7.26
|    |    |    |    |    +--- com.netflix.servo:servo-core:0.10.1
|    |    |    |    |    |    +--- org.slf4j:slf4j-api:1.7.12 -> 1.7.26
|    |    |    |    |    |    +--- com.google.guava:guava:16.0.1 -> 18.0
|    |    |    |    |    |    +--- com.google.code.findbugs:annotations:2.0.0
|    |    |    |    |    |    \--- com.netflix.servo:servo-internal:0.10.1
|    |    |    |    |    |         +--- org.slf4j:slf4j-api:1.7.12 -> 1.7.26
|    |    |    |    |    |         +--- com.google.guava:guava:16.0.1 -> 18.0
|    |    |    |    |    |         \--- com.google.code.findbugs:annotations:2.0.0
|    |    |    |    |    +--- com.google.guava:guava:16.0.1 -> 18.0
|    |    |    |    |    +--- com.netflix.archaius:archaius-core:0.7.4 (*)
|    |    |    |    |    \--- com.netflix.netflix-commons:netflix-commons-util:0.1.1
|    |    |    |    |         \--- org.slf4j:slf4j-api:1.6.4 -> 1.7.26
|    |    |    |    +--- io.reactivex:rxjava:1.0.10 -> 1.1.10
|    |    |    |    +--- io.reactivex:rxnetty:0.4.9
|    |    |    |    |    +--- io.reactivex:rxjava:1.0.10 -> 1.1.10
|    |    |    |    |    +--- io.netty:netty-codec-http:4.0.27.Final
|    |    |    |    |    |    +--- io.netty:netty-codec:4.0.27.Final -> 4.0.37.Final (*)
|    |    |    |    |    |    \--- io.netty:netty-handler:4.0.27.Final -> 4.0.37.Final (*)
|    |    |    |    |    +--- io.netty:netty-transport-native-epoll:4.0.27.Final
|    |    |    |    |    |    +--- io.netty:netty-common:4.0.27.Final -> 4.0.37.Final
|    |    |    |    |    |    +--- io.netty:netty-buffer:4.0.27.Final -> 4.0.37.Final (*)
|    |    |    |    |    |    \--- io.netty:netty-transport:4.0.27.Final -> 4.0.37.Final (*)

0 个答案:

没有答案
相关问题