Gradle: изменение спецификаций c зависимостей, но не зависимых или транзитивно-зависимых - PullRequest
0 голосов
/ 17 апреля 2020

Дерево частичных зависимостей похоже на

|    |    +--- 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: 4.0.27.Последний обработчик netty: 4.0.37.Final

Когда я Вношу изменения, это изменения

как группа компиляции: 'io.netty', имя: 'netty-handler', версия: '4.0.37.Final'

Это меняется не только netty - обработчик, но также и его зависимая версия jar как 4.0.37.

Здесь я просто хочу изменить обработчик netty: 4.0.27.Final на обработчик netty: 4.0.37.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 (*)

**

|    |    +--- 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 (*)
...