Declare a dependency with a specific version within pom.xml whilst simultaneously banning that same version - Does this make any sense? #42561
Unanswered
dfreismuth
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At least Gradle seems to get confused within dependency resolution, you include e.g. 'reactor-core' whilst also banning the library with the same version. Does this make any sense? I am not experienced with pom bannedDependencies so I might simply not got the Idea behind this...
See example taken from main/sdk/core/azure-core/pom.xml:
<dependency> <groupId>io.projectreactor</groupId> <artifactId>reactor-core</artifactId> <version>3.4.41</version> <!-- {x-version-update;io.projectreactor:reactor-core;external_dependency} --> </dependency>
and later within the same file:
<bannedDependencies> <includes> <include>io.projectreactor:reactor-core:[3.4.41]</include> ...
Beta Was this translation helpful? Give feedback.
All reactions