[GRADLE-3514] Ivy Publish plugin does not reflect transitive = false for a dependency in generated metadata Created: 27/Jul/16 Updated: 27/Jul/16 Resolved: 27/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: | 0 |
Known Issue Of: |
Description |
The Ivy Publishing plugin does not take into account the transitive attribute declared for a dependency when generating the publishing metadata. The problem can be exposed with the following sample project: apply plugin: 'java' apply plugin: 'ivy-publish' group = 'org.gradle' version = '1.0' dependencies { compile "commons-dbcp:commons-dbcp:1.4", { transitive = false } } publishing { publications { ivy(IvyPublication) { from components.java } } repositories { ivy { url "file://${buildDir}/repo" } } } The result is a ivy.xml file containing the following dependency declaration for commons-dbcp:commons-dbcp:1.4: <dependencies> <dependency org="commons-dbcp" name="commons-dbcp" rev="1.4" conf="runtime->default"/> </dependencies> The expected metadata should declare the attribute transitive="false" according to Ivy's behavior. |