Hi David,
The following syntax works for me (I'm using 0.5.2):
compile('org.springframework:org.springframework.core:2.5.6.A') {
dependencyConfigurationMappings.add 'compile'
}
There may be a better/shorter way, I asked this on the user list myself this
evening.
Regards,
Levi
On Fri, Feb 6, 2009 at 11:10 PM, David Zeigler <[email protected]> wrote:
> Hi all,
> I'm new to Gradle and relatively new to Ivy. When I run gradle
> against my build.gradle, it fails to find my dependencies. In the
> debug output I see:
>
> [main] DEBUG org.gradle.api.logging.LogLevel - problem : configuration
> not found in org.
> springframework#org.springframework.context;2.5.6.A: 'default'. It was
> required from com.dz#
> example;1.0 compile
>
> These dependencies are in an ivy repository (it's a local mirror of
> the Spring OSGi Ivy/Maven repository here
> http://www.springsource.com/repository/app/bundle). The ivy.xml for
> org.springframework.context has the following configurations section
> (note there is no "default" conf):
> <configurations>
> <conf name="compile" visibility="public"
> description="Compile dependencies"/>
> <conf name="optional" visibility="public" extends="compile"
> description="Optional dependencies"/>
> <conf name="provided" visibility="public"
> description="Provided
> dependencies"/>
> <conf name="runtime" visibility="public" extends="compile"
> description="Runtime dependencies"/>
> <conf name="aspectj" extends="runtime" description="JARs
> needed to
> run with AspectJ"/>
> <conf name="backport-util-concurrent" extends="runtime"
> description="JARs needed to run with Backport Util Concurrent"/>
> <conf name="commons-attributes" extends="runtime"
> description="JARs
> needed to run with Commons Attributes"/>
> <conf name="commons-collections" extends="runtime"
> description="JARs
> needed to run with Commons Collections"/>
> <conf name="log4j" extends="runtime" description="JARs
> needed to use Log4J"/>
> </configurations>
>
> This error was happening for some of my internal jars. I modified
> their ivy.xml files to add a "default" conf then gradle was able to
> resolve them. I'd rather not have to modify the 3rd party ivy.xml.
> Is there a way to tell gradle to look for an alternate configuration
> instead of "default" or am I doing something wrong here?
>
> Here's part of my build.gradle
> usePlugin('java')
> dependencies {
> compile "org.springframework:org.springframework.core:2.5.6.A"
> compile "org.springframework:org.springframework.context:2.5.6.A"
> ... (more dependencies)
> }
>
> Thanks!
> David
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>