You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
643 B
Groovy
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
|
|
}
|