I tried a definition, as described in chapter 12.2.7 of the user guide
DefaultDependencyDescriptor dependencyDescriptor = new
DefaultDependencyDescriptor(
new ModuleRevisionId(new ModuleId('myCompany', 'myModule'),
'myRev'), false)
dependencyDescriptor.addDependencyConfiguration("compile", "client")
// do more configuration with the descriptor
dependencies {
addDependencyDescriptors dependencyDescriptor
}
This doesn't work at all:
it seems, addDependencyDescriptors does not exist, the only way that works
is dependencyDescriptors.add
it seems that "compile" is not a configuration (at least for Ivy) - I get a
null pointer exception in ivy.
dependencyDescriptor.addDependencyConfiguration("default", "client") works,
"default" seems to be the only available configuration?
"works" means, I don't get errors before the compilation starts.
--
View this message in context:
http://www.nabble.com/Dependency-to-a-module-configuration--tp19990983p19992588.html
Sent from the gradle-user mailing list archive at Nabble.com.