forked from gradle/gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore artifact when relocation exists in pom
This fixes gradle#1789 When <relocation> element exists in pom, both original artifact (if it exists) and relocated artifact will be downloaded, which causes package conflict. For example, org.apache.commons:commons-io:1.3.2 is relocated to commons-io:commons-io:1.3.2, if a project depends on org.apache.commons:commons-io:1.3.2 and commons-io:commons-io:2.4, the two artifacts will both exist in resolved classpath. (See MavenPomPackagingResolveIntegrationTest.groovy provided in this commit) This fix checks if relocation exists in pom and ignore its artifact if necessary. This problem is first introduced in Gradle 2.0. An integration test is provide to justify the fix. In addition, an unnecessary artifact retrieval in test and a redundant System.out.println("") is removed.
- Loading branch information
1 parent
301738c
commit 190e808
Showing
4 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters