summaryrefslogtreecommitdiff
path: root/autoload/ale/gradle/init.gradle
blob: fb1db9ee417f07230d04cfb026af0b86e76797d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
}