2009/3/30 Russel Winder <[email protected]>

> I have a dependencies section:
>
>        dependencies {
>          addMavenRepo ( )
>          addMavenRepo ( 'file:///home/users/russel/.m2/repository' )
>          groovy ( 'org.codehaus.groovy:groovy-all:' + groovyVersion )
>          compile ( [
>                     'commons-cli:commons-cli:' +
> ant.antProject.properties.commonsCliVersion ,
>                     'org.apache.ant:ant:' +
> ant.antProject.properties.antVersion
>                     ] )
>          testCompile ( [
>                         'junit:junit:' +
> ant.antProject.properties.junitVersion
>                         ] )
>          testRuntime ( [
>                         'org.apache.ivy:ivy:' +
> ant.antProject.properties.ivyVersion
>                         ] )
>        }
>
>
> All the variables are properly calculated.  However the compile
> classpath I end up with is:
>
> '--classpath'
>
> '/home/users/russel/Repositories/Bazaar/Branches/Gant/Development/build/classes:/home/users/russel/.gradle/cache/org.codehaus.groovy/groovy-all/jars/groovy-all-1.7-beta-1-SNAPSHOT.jar:/home/users/russel/.gradle/cache/commons-cli/commons-cli/jars/commons-cli-1.2.jar:/home/users/russel/.gradle/cache/org.apache.ant/ant/jars/ant-1.7.1.jar:/home/users/russel/.gradle/cache/junit/junit/jars/junit-4.5.jar:/home/users/russel/lib/Java/gradle/lib/ant-1.7.0.jar:/home/users/russel/lib/Java/gradle/lib/ant-launcher-1.7.0.jar'
>
> Where is the extra Ant jar set coming from and why?

First thought would be transitive dependency from ivy but it is not on the
classpath you mentioned which configuration resolves to this classpath?.


>  And the subsidiary
> question, does it matter?

It might

>
>
> Thanks.
>
> --
> Russel.
> ============================================================
> Dr Russel Winder                 Partner
>
> Concertant LLP          t: +44 20 7585 2200, +44 20 7193 9203
> 41 Buckmaster Road,     f: +44 8700 516 084    voip:
> sip:[email protected] <sip%[email protected]>
> London SW11 1EN, UK.    m: +44 7770 465 077    xmpp: [email protected]
>

Reply via email to