This is a boilerplate you can try out to get started with Groovy and Spock quickly https://github.com/shenghuahe/groovywithspock.

I created this because it can be tricky to find all the right dependencies & plugins to get started with Spock. This should get you started in no time.