[GRADLE-357] Replace unmanaged classpath with new dependency type Created: 10/Jan/09 Updated: 04/Jan/13 Resolved: 17/Jul/09 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | None |
Fix Version/s: | 0.7 |
Type: | Improvement | ||
Reporter: | Hans Dockter | Assignee: | Adam Murdoch |
Resolution: | Fixed | Votes: | 0 |
Description |
The compile and test task have an unmanaged classpath property. This is not a very nice solution for the underlying problem:
A much nicer way of solving the problem would be to create a new dependency type, let's call it file. It could be used like: dependencies { compile "junit:junit:4.4", files('src/main/java', 'lib/somedep.jar', 'Users/joe/libs/whatever.jar') } To enable this, we would create our Ivy resolver for file depenencies (like we do for client modules). Such dependencies are shared between sub projects. |
Comments |
Comment by Jon Cox [ 23/Jan/09 ] |
Somewhat off-topic perhaps, but this has been confusing me for a while now: At first glance, the word "client" introduces a sort of client/server perspective, leaving the newcomer prosed syntax addDependencies( confs: ['compile'], id: "....") { addDependency("....") addDependencies("....") { addDependency("....") addDependency("....") } } Please help clarify this a bit, if possible. |
Comment by Jon Cox [ 23/Jan/09 ] |
The intention of the proposed syntax is to replace the syntax presented in "14.2.3 Client Module Dependencies" |
Comment by Adam Murdoch [ 23/Jan/09 ] |
This issue refers to the Compile task's unmanagedClasspath property, rather than the client modules. |