2017-11-22 14:19:42 -05:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
subprojects {
|
2017-01-11 15:40:04 -05:00
|
|
|
|
2017-11-22 14:19:42 -05:00
|
|
|
version = '1.0'
|
2017-01-11 15:40:04 -05:00
|
|
|
}
|
|
|
|
|
2017-11-22 14:19:42 -05:00
|
|
|
apply plugin: 'eclipse'
|
|
|
|
|
|
|
|
println 'This will be executed during the configuration phase.'
|
|
|
|
|
|
|
|
task configured {
|
|
|
|
println 'This will also be executed during the configuration phase.'
|
|
|
|
}
|
2017-01-11 15:40:04 -05:00
|
|
|
|
2017-11-22 14:19:42 -05:00
|
|
|
task execFirstTest {
|
|
|
|
doLast {
|
|
|
|
println 'This will be executed during the execution phase.'
|
|
|
|
}
|
2017-01-11 15:40:04 -05:00
|
|
|
}
|
|
|
|
|
2017-11-22 14:19:42 -05:00
|
|
|
task execSecondTest {
|
|
|
|
doFirst {
|
|
|
|
println 'This will be executed first during the execution phase.'
|
|
|
|
}
|
|
|
|
doLast {
|
|
|
|
println 'This will be executed last during the execution phase.'
|
|
|
|
}
|
|
|
|
println 'This will be executed during the configuration phase as well.'
|
2017-01-11 15:40:04 -05:00
|
|
|
}
|