Created
March 9, 2016 11:47
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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