Kotlin and general Gradle support. (#745)

This commit is contained in:
Michael Pardo
2017-07-10 18:03:36 -04:00
committed by w0rp
parent 29d0a20dc3
commit d787050fa8
19 changed files with 202 additions and 4 deletions

View File

@@ -0,0 +1,23 @@
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
}