Red Hat Bugzilla – Bug 1271243
groovy-lib has unnecessary requires
Last modified: 2016-04-07 05:05:55 EDT
Description of problem:
I think the groovy-lib subpackage was introduced to allow packages that use groovy as embedded language to depend on it without pulling in a ton of dependencies. But as of now, groovy-lib still pulls in ant, junit, testng etc., which I believe are not needed (are optional).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. repoquery --requires groovy-lib
no requires on ant, junit, etc.
On the other hand, I'd expect objectweb-asm to be among requires, as that is what groovy uses internally, isn't it?
AFAIK the requires are correct. Groovy 2.x comes with artifacts like org.codehaus.groovy:groovy-testng (which pulls in testng), or org.codehaus.groovy:groovy-test (which pulls in junit). testng and junit deps are not optional in those cases.
Those artifacts didn't exist in 1.8.x and therefore having singe -lib subpackage was enough. It would make sense to put each artifact into separate subpackage in case of Groovy 2.x.
objectweb-asm seems to be jarjar-ed inside org.codehaus.groovy:groovy (and groovy-all), so we should probably unbundle it, or add bundled(objectweb-asm) provides.
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.
More information and reason for this action is here:
Created attachment 1144609 [details]
Split into subpackages