-
Notifications
You must be signed in to change notification settings - Fork 3
/
utils.gradle
36 lines (34 loc) · 1020 Bytes
/
utils.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
if( project.hasProperty("printTaskDetails") &&
project.printTaskDetails == "true" ) {
gradle.taskGraph.afterTask { task ->
StringBuffer taskDetails = new StringBuffer()
taskDetails << """-------------
name:$task.name group:$task.group : $task.description
conv:$task.convention.plugins
inputs:
"""
task.inputs.files.each{ it -> taskDetails << " ${it.absolutePath}\n" }
taskDetails << "outputs:\n"
task.outputs.files.each{ it -> taskDetails << " ${it.absolutePath}\n" }
taskDetails << "-------------"
println taskDetails
}
}
/*
sourceSets {
main {
println "Resources"
println resources.srcDirs
}
}
*/
project.afterEvaluate {
if( project.hasProperty("printResources") &&
project.printResources == "true" ) {
println " ------- RESOURCES --------"
sourceSets.all { ss ->
println "Name: ${ss.name} - "
ss.resources.each { r -> println " --- Resource File: ${r.path}" }
}
}
}