[GRADLE-816] 3rd-level transitive runtime dependencies are no longer resolved Created: 09/Feb/10 Updated: 04/Jan/13 Resolved: 24/Nov/10 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 0.9 |
Fix Version/s: | 0.9-rc-1 |
Type: | Bug | ||
Reporter: | Felix Gnass | Assignee: | Hans Dockter |
Resolution: | Fixed | Votes: | 1 |
Attachments: | gradle-deps-bug.zip gradle-test.zip |
Description |
Gradel's behavior has changed from 0.8 to 0.9 when it comes to the resolution of runtime dependencies. I've attached a ZIP-file containing a simple example. The test-case consists of two projects called "project" and "framework". The latter one is a multi-project build with dependencies between its modules: framework/libA/build.gradle framework/libB/build.gradle The other project has a module-dependency to libA: project/build.gradle With Gradle 0.8 everthing works as expected and running `gradle war` in ./project creates a WAR-file containing all three JARs (libA, libB and libC). With Gradle 0.9-20100208163629+0100, only libA and libB are present, whereas libC is missing. This is the command output of the different versions. The difference id that in 8.0 libB is requested with conf=master,compile,runtime, whereas in 9.0 only the compile configuration is requested: $ gradle -v ------------------------------------------------------------ Gradle buildtime: Monday, September 28, 2009 2:01:59 PM CEST $ gradle --dependencies ------------------------------------------------------------
BUILD SUCCESSFUL $ gradle -v ------------------------------------------------------------ Gradle buildtime: Montag, 8. Februar 2010 16:36 Uhr MEZ $ gradle --dependencies ------------------------------------------------------------
BUILD SUCCESSFUL |
Comments |
Comment by Peter Ledbrook [ 09/Feb/10 ] |
I think the project in gradle-deps-bug.zip is exhibiting the same problem, but I'm not sure. If you extract it and run gradle -i assemble, you will see that spring-webmvc is resolved by Ivy, but Gradle does not include it in the runtime configuration's files collection. |
Comment by Hans Dockter [ 19/Apr/10 ] |
This issue is fixed. Thanks a lot for the test cases. |