Skip to content

Commit

Permalink
Update GroovyEssential
Browse files Browse the repository at this point in the history
  • Loading branch information
yrojha4ever authored Nov 29, 2017
1 parent 66061e0 commit a7c6d45
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions documents/GroovyEssential
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,40 @@ assert doubled == [2, 4, 6]
//256
//512

//==========Gradle inside .gradle file========================
task hello{
doFirst {
println "hello First!"
}
doLast {
println "Helo Last!"
}
}
//---------dependsOn--
task hell << {
println "Hell with << ie last"
}
task respond(dependsOn: hell) << {
println 'GoodBye Hell!'
}
//---------dependsOn--alternaet=---
task pilot {
println "Configuration" //it executes first due to 2 step execute
doLast{
println "Pilot! last"
}
}
task replyPilot << {
println "Goodbye Pilot!"
}

replyPilot.dependsOn pilot
//---------------android. in android------
angroid.applicationVariants.all{varient ->
println variant.name
}


//---Introduction to Groovy by Daniel Lew
//---Gradle Summit: Groovy for Gradle
```

0 comments on commit a7c6d45

Please sign in to comment.