anchor.diff:  
   or
   
  -.Using Groovy in Gradle's tasks
  +.Using Groovy or Kotlin in Gradle's tasks
   ====
   include::sample[dir="userguide/tutorial/count/groovy", files="build.gradle[]"]
   include::sample[dir="userguide/tutorial/count/kotlin", files="build.gradle.kts[]"]
  
positive.code: [[sec:build_script_external_dependencies]]
  == External dependencies for the build script
  
  If your build script needs to use external libraries, you can add them to the script's classpath in the build script itself. You do this using the `buildscript()` method, passing in a closure which declares the build script classpath.
  
  .Declaring external dependencies for the build script
  ====
  
negative.code: 
  The calls `doFirst` and `doLast` can be executed multiple times. They add an action to the beginning or the end of the task's actions list. When the task executes, the actions in the action list are executed in order.
  
  [[sec:shortcut_notations]]
  == Groovy DSL shortcut notations
  
  There is a convenient notation for accessing an _existing_ task. Each task is available as a property of the build script:
  
  