Skip to content

Instantly share code, notes, and snippets.

@mrkeuz
Created March 9, 2016 11:47
Show Gist options
  • Save mrkeuz/03d9a2ffd04d74f83f92 to your computer and use it in GitHub Desktop.
Save mrkeuz/03d9a2ffd04d74f83f92 to your computer and use it in GitHub Desktop.
Gradle. Classpath. Newbie. Just for fun - FP style task for list classpath (for each configartion)
// Tested on gradle 2.11
task show {
configurations.each {
fileList ->
println fileList
fileList.each {
file ->
if (file == fileList.last()) {
print " +--- "
} else {
print " |--- "
}
println file
}
println " "
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment