A sample Spring Boot application with Spock tests. For more information, see the blog entry Testing Spring Boot Applications with Spock.
To run the unit tests:
./gradlew test
To run tests and build the JAR file:
./gradlew build
First, build the JAR as desribed above. Then:
java -jar build/libs/gs-spring-boot-0.1.0.jar