Hallo,
I have a builddependency, and within this dependency I want to exclude from the classpath a module:
My question…:
At the moment the build dependency within the classpath looks like that:
dependencies {
classpath "org.codehaus.groovy.modules.http-builder:http-builder:0.5.2"
}
But I want that some package be excluded (from the above), like that:
dependencies {
classpath "org.codehaus.groovy.modules.http-builder:http-builder:0.5.2"
{ exclude group:'org.codehaus.groovy', module:'groovy' }
}
How can I do that? Because that does not work, I get following exception:
No signature of method: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.org.codehaus.groovy.modules.http-builder:http-builder:0. 5.2() is applicable for argument types: (build_nnr9nmao9uhm9s9cp5ah4pi64$_run_closure1_closure2_closure5_closure8) values: [build_nnr9nmao9uhm9s9cp5ah4pi64$run_closure1 closure2_closure5_closure8@46013dd8]
Thanks for you help!