From the course: Learning Gradle

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Gradle's domain-specific language

Gradle's domain-specific language

From the course: Learning Gradle

Start my 1-month free trial

Gradle's domain-specific language

- In the previous video, we implemented a very basic Build Script. The logic somewhat looked like source code you'd usually write in a programming language. Gradle provides a higher level of abstraction language a so-called Domain-Specific Language in short DSL to express your Build automation needs. There are two options you can choose from the Groovy DSL and the Kotlin DSL. The Hello World example use the Groovy DSL which means you use the semantics of the Groovy programming language and can implement any imperative logic using Groovy syntax. For the remainder of the course we'll continue to use the Groovy DSL. The Groovy DSL has been around in Gradle for a long time and you will find better documentation in Gradle User Guide and on the internet. There's nothing speaking against using the Kotlin DSL, it's just a matter of personal choice. You should pick the language and therefore DSL you're most familiar with. Let's…

Contents