Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected result of resolution when the same dependency is requested multiple times with different attributes #16

Open
chali opened this issue Aug 14, 2018 · 0 comments
Milestone

Comments

@chali
Copy link
Member

chali commented Aug 14, 2018

I have a direct dependency on org.junit:junit-engine-api:5.+ with release requested status attribute. I have another direct dependency org.junit:junit4-engine:5.+ with integration requested status attribute. junit4-engine will transitively bring junit-engine-api. I would assume that each leaf in the dependency graph will pick a candidate version considering requested attribute. Those versions will then conflict resolve. Now my resolution fails because the winner of conflict resolution is not able to fulfill conflicting requested attributes.

Run ./gradlew dependencies in https://github.com/nebula-plugins/gradle-nebula-integration/tree/master/lowerStatusConflict to see this result:

+--- org.junit:junit4-engine:5.+ -> 5.0.0-SNAPSHOT
|    +--- org.junit:junit-engine-api:5.0.0-SNAPSHOT
|    |    +--- org.junit:junit-commons:5.0.0-SNAPSHOT
|    |    \--- org.opentest4j:opentest4j:1.0.0-M1
|    \--- junit:junit:4.12
|         \--- org.hamcrest:hamcrest-core:1.3
\--- org.junit:junit-engine-api:5.+ FAILED
@OdysseusLives OdysseusLives added this to the Attributes milestone Sep 20, 2018
@chali chali removed the priority label Oct 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants