This is a boilerplate you can try out to get started with Apache Spark (version 2.10) with Spring profile quickly: https://github.com/shenghuahe/sparkwithspringprofile
This should allow you to configure environment specific properties (i.e. path to read some input file) really easily.
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.