Groovy for Domain-specific Languages - Second Edition

(nextflipdebug2) #1

Essential Groovy DSLs


[ 50 ]

Further reading


I encourage you to read the detailed documentation for both these tools at their
respective sites. The Gradle DSL has full and comprehensive documentation
hosted at http://www.gradle.org/docs/current/dsl/index.html. A detailed
documentation on Spock can be found at http://spockframework.github.io/
spock/docs/1.0/index.html.


As further reading take a look at the ChapterThreeGradleSpec.groovy example
in the code sources. Most of the Gradle examples from the start of the chapter are
asserted via Spock feature methods in this specification. Now, take the time to
explore the sample code associated with the book. Spock is used extensively to
illustrate and assert the code examples in the book. Gradle is used as the primary
build tool for building all the examples in the book.


Summary


The purpose of this chapter was to give you sufficient background in both Gradle
and Spock so that you are comfortable with them when we make reference to these
tools later in the book. We covered enough material to serve this purpose, but for
both Gradle and Spock, there is a lot more to learn. Gradle alone is the subject of
several books, including one excellent title by this publisher, Packt Publishing.


In the next chapter, we will take a tour of the Groovy language. While this will not
be a comprehensive guide of all aspects of the language, I will cover enough of the
language so that you will be able to start coding in Groovy yourself, and start to
follow the examples in the rest of the book.


http://www.ebook3000.com
Free download pdf