I can't get the IDEA plugin to create my .iml correctly (in 0.9-rc1) and
can't figure out why, though it appears to be a much more fundamental
problem. I stripped it down to as simple a build file as I could (below)
and it's not behaving as I would expect:
----
apply plugin: 'groovy'
dependencies {
testCompile 'org.spockframework:spock-core:0.4-groovy-1.7'
testRuntime 'junit:junit:4.7'
testRuntime 'ch.qos.logback:logback-classic:0.9.24'
testRuntime 'org.slf4j:slf4j-api:1.6.1'
}
afterEvaluate {
def config = configurations.findByName('testRuntime')
if (!config) {
println "testRuntime not found in
${configurations.getAsMap().keySet()}"
return
}
println " resolve ${config.resolve()}"
println " copying ${config.files.collect {File file -> file.name}}"
println " copying rec ${config.copyRecursive().files.collect {File file
-> file.name}}"
println " copying art ${config.allArtifacts.collect {art ->
art.file.name}}"
println " deps ${config.dependencies.collect {Dependency dep ->
dep.getName()}}"
}
----
When I run "gradle clean" I get:
resolve root project 'git' []
copying root project 'git' []
copying rec root project 'git' []
copying art root project 'git' []
deps root project 'git' [junit, logback-classic, slf4j-api]
:clean
Any idea what the heck is going on?