[GRADLE-3440] Publishing with the legacy Ivy support doesn't add excludes to generated metadata Created: 18/Apr/16 Updated: 22/Jul/16 Resolved: 22/Jul/16 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | None |
Fix Version/s: | 3.1-rc-1 |
Type: | Bug | ||
Reporter: | Benjamin Muschko | Assignee: | Benjamin Muschko |
Resolution: | Fixed | Votes: | 2 |
Known Issue Of: |
Description |
Issue was raised on the Gradle forum in this post. Executing gradle uploadArchives for the given the following build script does not produce the correct metadata: apply plugin: 'java' repositories { mavenCentral() } dependencies { compile ("org.drools:drools-core:6.3.0.Final"){ exclude group : 'org.mvel' } compile ("org.springframework:spring-core:4.2.5.RELEASE"){ exclude group : 'commons-logging' } } uploadArchives { repositories { ivy { url "file://${buildDir}/repo" } } } The generated metadata with Gradle 2.5 looks as such: <dependencies> <dependency org="org.drools" name="drools-core" rev="6.3.0.Final" conf="compile->default"/> <dependency org="org.springframework" name="spring-core" rev="4.2.5.RELEASE" conf="compile->default"/> </dependencies> With previous versions of Gradle the generated metadata included the exclude statements: <dependencies> <dependency org="org.drools" name="drools-core" rev="6.3.0.Final" conf="compile->default"> <exclude org="org.mvel" module="*" name="*" type="*" ext="*" conf="compile" matcher="exact"/> </dependency> <dependency org="org.springframework" name="spring-core" rev="4.2.5.RELEASE" conf="compile->default"> <exclude org="commons-logging" module="*" name="*" type="*" ext="*" conf="compile" matcher="exact"/> </dependency> </dependencies> |
Comments |
Comment by Mohan Kornipati [ 10/May/16 ] |
Here is the PR with the fix - ttps://github.com/gradle/gradle/pull/602 |
Comment by Kaleb Walton [ 16/May/16 ] |
When can we expect this to be released in an official version of Gradle? |