-
Bug
-
Resolution: Won't Fix
-
Major
-
None
I have a plugin that depends on the test jar of org.jenkins-ci.plugins.workflow:workflow-support:jar with scope test
When I package this plugin I find that the transitive dependencies of that dependency are included in the hpi archive when they should be ignored as they come from a test dependency.
[INFO] +- org.jenkins-ci.plugins.workflow:workflow-support:jar:tests:2.19:test [INFO] | \- org.jboss.marshalling:jboss-marshalling-river:jar:1.4.12.jenkins-3:compile [INFO] | \- org.jboss.marshalling:jboss-marshalling:jar:1.4.12.jenkins-3:compile
this code is most likely wrong as it is filtering the individual artifacts after the building of the tree.
This is incorrect as the exclusion should be happening before the building of the tree, or the filtering should accept that the library is a decendant of something else that has been filtered meaning it should not include this.
- relates to
-
JENKINS-58771 JARs bundled which are transitive deps of a plugin but via a test-scoped trail
- Resolved
- links to