-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
78 lines (67 loc) · 1.59 KB
/
build.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
//apply plugin: 'java'
/*
sourceCompatibility = 1.5
version = '1.0'
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
}
*/
subprojects {
println project.name
//println "*********************************"
//project.sourceSets.main.each { println "$it -> ${it.getClass().getName()}" }
}
allprojects {
task show << {
println "*********************************"
println project.name
println project.buildDir
println "Project: $project"
println "Name: $name"
println "Path: $path"
println "Project directory: $projectDir"
println "Build directory: $buildDir"
println "Version: $version"
println "Group: $project.group"
println "Description: $project.description"
println "AntBuilder: $ant"
println "-------------------------------"
println "TASKS -> ${project.getAllTasks(true)}"
/*
println project.properties.sort().each { key, val ->
if (val instanceof Map)
{
println "$key -> "
val.each { k, v -> println "\t$k -> $v" }
} else if (val instanceof List)
{
println "$key -> "
val.each { v -> println "\t-> $v" }
} else
{
println "$key -> $val"
}
} */
}
task printInfo << {
println "This is ${project.name}"
}
}
subprojects {
printInfo << {
println "has buildDir $buildDir"
println "has srcDir "
//project.sourceSets.each{ println it }
}
}
project(':Client').printInfo << {
println "Has leaves"
}
project(':JavaAppMultiSrc') {
printInfo.doLast {
println 'Smells nice'
}
}