commit | e81a22cf78fd565e29987b388f50b5a72b4fd9ff | [log] [tgz] |
---|---|---|
author | Jeremy Walker <[email protected]> | Thu Jul 11 15:24:05 2019 -0700 |
committer | Jeremy Walker <[email protected]> | Fri Jul 12 20:39:41 2019 +0000 |
tree | a41f59b159c44149b399adf72105288a5bcd7938 | |
parent | d872b51977cad92508db7c5f0c3b5159a0c77967 [diff] |
Replaces << (deprecated in 4.x and removed in 5.0) with doLast. Test: Manually tested. Bug: 137389675 Change-Id: I60699253dad6a3115dd64ecbc5188d10a08de706
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 faa2973..e60f1f6 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 @@ 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." + } + } }) }