Understanding operators << and -> in gradle scripts


I have a very basic question and I have been trying to search google but havent been very successful. I would like to understand more about the operators used in gradle scripts like -> and << . Are these two operators part of groovy paradigm? Please can some one point some reading material or explain what the above two operators are and how they can be used.


-> is a Groovy thing: http://www.groovy-lang.org/closures.html

<< is a Gradle thing. In Groovy, you can override operators (leftShift in this case) to mean other things. In Gradle, it’s a shortcut for doLast: https://docs.gradle.org/current/userguide/tutorial_using_tasks.html (6.3)