The following code fragment will complete the task:
apply plugin: 'java'
repositories {
mavenCentral()
}
configurations {
lol
}
dependencies {
lol "org.codehaus.groovy:groovy-all:2.4.0"
lol "com.opencsv:opencsv:3.1"
}
task printLocations << {
configurations.lol.files.each { println it }
}
I don’t know what your goal is, but overall, what a way.
source
share