Replaces << (deprecated in 4.x and removed in 5.0) with doLast. am: e81a22cf78
am: ea696d07d8

Change-Id: I591149f8569ae1812d6bdeee5717ed7dac5630da
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."
+                }
+            }
 
         })
     }