Executing "myTask" in the following script results in a NPE. A possible workaround is specifying a group and moved the JARs
(see http://www.nabble.com/NPE-when-using-exclude-rules-td23728395.html)
repositories {
flatDir name: 'lib', dirs: "src/lib"
mavenCentral().checkconsistency = false
}
configurations {
all*.exclude group: "hsqldb"
}
dependencies {
compile "dk.eobjects.commons:MetaModel:1.0.7"
compile ":gdata-core:1.0"
}
task myTask << {
configurations.testRuntime.each
{ file -> println file }
}
|