On Oct 15, 2008, at 2:36 PM, mvlcek wrote:
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.
Have you called usePlugin('java) before? This is were the
configurations get added.
- Hans
--
Hans Dockter
Gradle Project lead
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email