ale/autoload/ale/gradle/init.gradle
2017-07-10 23:03:36 +01:00

24 lines
643 B
Groovy

class ClasspathPlugin implements Plugin<Project> {
void apply(Project project) {
project.task('printClasspath') {
doLast {
project
.rootProject
.allprojects
.configurations
.flatten()
.findAll { it.name.endsWith('Classpath') }
.collect { it.resolve() }
.flatten()
.unique()
.findAll { it.exists() }
.each { println it }
}
}
}
}
rootProject {
apply plugin: ClasspathPlugin
}