+1

I couldn't define an exclusion on old Ant 1.6.5 coming with latest CodeNarc
1.3. 
Tried


dependencies   {
    ..
    codenarc ( 'org.codenarc:CodeNarc:0.13',
               'org.apache.ant:ant:1.8.2',
               files( rootProject.file( 'codenarc/log4j-xml.jar' ))){
         exclude group: 'ant', module: 'ant'
    }
    ...
}


had the same error:

Caused by: org.gradle.api.InvalidUserDataException: The dependency notation:
build_6r88q87mbt8rvdghirjenpht2d$_run_closure2_closure5_closure13@10cc730 is
invalid.
        at
org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyFactory.createDependency(DefaultDependencyFactory.java:64)
        at
org.gradle.api.internal.artifacts.dsl.dependencies.DependencyFactory$createDependency.call(Unknown
Source)
        at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
        at
org.gradle.api.internal.artifacts.dsl.dependencies.DependencyFactory$createDependency.call(Unknown
Source)
        at
org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.pushDependency(DefaultDependencyHandler.groovy:51)
        at
org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.this$2$pushDependency(DefaultDependencyHandler.groovy)



This one worked:

dependencies   {
    ...
    codenarc ( 'org.codenarc:CodeNarc:0.13' ){ exclude group: 'ant', module:
'ant' }
    codenarc 'org.apache.ant:ant:1.8.2',
             files( rootProject.file( 'codenarc/log4j-xml.jar' ))
    ...
}


-----
Best regards,

Evgeny

evgeny-goldin.com 

--
View this message in context: 
http://gradle.1045684.n5.nabble.com/define-excludes-on-a-list-of-dependencies-tp4452953p4459470.html
Sent from the gradle-user mailing list archive at Nabble.com.

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

    http://xircles.codehaus.org/manage_email


Reply via email to