On Feb 25, 2009, at 9:26 AM, Levi Hoogenberg wrote:

Ah, good to know. I got lazy and just added an empty 'default' configuration to my repository. Glad to see you got it working.

On Wed, Feb 25, 2009 at 9:21 AM, Bernard Niset <[email protected]> wrote:
Thanks Levi and Neil,
I finally got it working with this setup:
        compile("codehaus:groovy:1.5.
6") {
                dependencyConfigurationMappings.mappings.clear()
                dependencyConfigurations( 'all') }

The dependencyConfigurationss ('all') does the same thing as Levi suggested. The syntax was correct but it didn't fully solve the problem. I believe this add configurations to the dependency whereas what I needed was using only the 'all' configuration. That's why I add to do dependencyConfigurationMappings.mappings.clear() to remove the 'default' configuration. This configuration DSL of Gradle should really be better explained in Documentation.
Now I can continue evaluating Gradle for my build process.

I agree. Fortunately things will be simpler in Gradle 0.6 (see my other posting on the new DSL).

You just need to write:

compile.dependsOn("codehaus:groovy:1.5.6") {
   dependencyConfigurations = ['all']
}

As dependencies belong to one and only one configuration in 0.6, we don't have to deal with many-to-many mappings any longer.

- Hans


Kind regards,
Bernard.




Levi Hoogenberg wrote:

Hi,

the syntax I use is

        compile('codehaus:groovy:1.5.6') {
                dependencyConfigurationMappings.add 'all'
        }


  Levi

On Tue, Feb 24, 2009 at 11:34 PM, Bernard Niset <[email protected]> wrote:
Hi all,
I am desperately looking for the syntax to specify a dependency to a specific conf specified in the ivy.xml file. I have been trying things like the following and other variants, I can't find a way to make it work.

dependencies
{
...
       compile "apache:commons-io:1.4",
                               "apache:log4j:1.2.14",
                               "gradle:gradle:0.5.2"
       compile("codehaus:groovy:1.5.6") { configurations:["all"] }
...
}


Thanks for any help,
Bernard.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email





--
Hans Dockter
Gradle Project lead
http://www.gradle.org





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to