[GRADLE-266] Support the full functionality of Ivy dependencies Created: 21/Oct/08 Updated: 04/Jan/13 Resolved: 29/Oct/08 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 0.4 |
Fix Version/s: | 0.5 |
Type: | Improvement | ||
Reporter: | Martin Vlcek | Assignee: | Hans Dockter |
Resolution: | Fixed | Votes: | 1 |
Issue Links: |
|
Description |
If you want to specify a dependency to a specific configuration of a module or to set the changing-flag, you currently have to do something like that: DefaultDependencyDescriptor dd(String conf, String descr, List depConf = [ "default" ], boolean changing = false) { return dd dependencies { dependencyDescriptors.add dd("compile", "org.apache.cxf:cxf:2.0.6", [ "default", "jaxws", "spring", "http" ]) }It would be nice to have an easy syntax like compile org.apache.cxf:cxf:2.0.6", [ configurations: "default,jaxws,spring,http", changing:true ] This would be compatible with the current syntax and can be easily extended later on.
the property transitive should not be available, because transitivity should be handled like now (compile: no, runtime: yes). |
Comments |
Comment by Adam Murdoch [ 22/Oct/08 ] |
Splitting this up into a couple of issues |
Comment by Hans Dockter [ 25/Oct/08 ] |
dependency('compile', "org.apache.cxf:cxf:2.0.6") { force = true changing = true configurations = ['a', 'b'] } We might offer eventually the following notation compile "org.apache.cxf:cxf:2.0.6") { force = true changing = true configurations = ['a', 'b'] } |