[GRADLE-2945] maven-publish plugin does not add excludes to generated pom Created: 01/Nov/13 Updated: 03/Jul/14 Resolved: 02/Jul/14 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | None |
Fix Version/s: | 2.1-rc-1 |
Type: | Bug | ||
Reporter: | Gradle Forums | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 12 |
Description |
I build a gradle project with: gradle clean publishToMavenLocal In the build.gradle file I need to exclude all transitive dependencies for 'commons-jxpath' dependencies { But in the generated pom nothing is set to exclude: <dependency> I would expect: <dependency> Do I specify the exclusion for the dependency incorrectly or is it not supported in the maven-publish plugin (worked with the maven plugin) |
Comments |
Comment by Gradle Forums [ 01/Nov/13 ] |
Excludes are not (yet) supported by the maven-publish plugin. You'll need to use `pom.withXml`. |
Comment by Gradle Forums [ 01/Nov/13 ] |
Is there a feature issue for this eg. GRADLE-XYZ/Fix version? |
Comment by Gradle Forums [ 01/Nov/13 ] |
Any updates on this? Is there a JIRA ticket for this we can watch and vote for? Thanks. |
Comment by Fedor Belov [ 16/Dec/13 ] |
This bug makes `maven-publish` plugin totally useless |
Comment by Maarten Dirkse [ 03/Jul/14 ] |
Thanks Biswa! |