Has anyone considered adding a Help task that will print out all the artifacts associated with each defined configuration? The dependencies task prints the dependencies for each configuration. I couldn’t find a way figuring out the artifacts per configuration without writing a task myself:
task artifacts {
group = "Help"
description = "Displays the artifacts associated with each configuration of " + project
doFirst {
configurations.findAll().each { config ->
println "${config}:"
config.allArtifacts.getFiles().each { file -> println "
" + file}
println ' '
}
}
}
Nice command line screen, but: this works for you? First, I had to mask “” chars, and next it complained “Could not find property ‘compileJava’ on task ‘:show’” and more…
Strangely, I think the “code” plugin within this forum removed the escape slashes from the post. Basically, it looks like there is a bug in the code markup plugin on this forum. The code works, you just need to re-add the escape chars.