summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Walker <jewalker@google.com>2019-07-12 14:18:42 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-07-12 14:18:42 -0700
commitb041eb6590b8c759bc919e89fa3773dbbfd6dada (patch)
treee9c0d6b74f26d49da26de0ab97b19fa653b6bb6b
parent690e5a92c6ed57c8deab16f4d8caef39d58d920d (diff)
parentea696d07d8fe9d3c625fd3958c46d792c294e605 (diff)
downloadbuild-b041eb6590b8c759bc919e89fa3773dbbfd6dada.tar.gz
Replaces << (deprecated in 4.x and removed in 5.0) with doLast. am: e81a22cf78
am: ea696d07d8 Change-Id: I591149f8569ae1812d6bdeee5717ed7dac5630da
-rw-r--r--buildSrc/src/main/groovy/com/example/android/samples/build/SampleGenPlugin.groovy13
1 files changed, 11 insertions, 2 deletions
diff --git a/buildSrc/src/main/groovy/com/example/android/samples/build/SampleGenPlugin.groovy b/buildSrc/src/main/groovy/com/example/android/samples/build/SampleGenPlugin.groovy
index faa29737..e60f1f6a 100644
--- a/buildSrc/src/main/groovy/com/example/android/samples/build/SampleGenPlugin.groovy
+++ b/buildSrc/src/main/groovy/com/example/android/samples/build/SampleGenPlugin.groovy
@@ -89,8 +89,17 @@ class SampleGenPlugin implements Plugin {
project.refresh.dependsOn(project.processCommon)
// People get nervous when they see a task with no actions, so...
- project.create << {println "Project creation finished."}
- project.refresh << {println "Project refresh finished."}
+ project.create {
+ doLast {
+ println "Project creation finished."
+ }
+ }
+
+ project.refresh {
+ doLast {
+ println "Project refresh finished."
+ }
+ }
})
}