The Spock Framework is a testing and specification framework for Java and Groovy applications. Its website make a somewhat bold claim: What makes it stand out from the crowd is its beautiful and highly expressive specification language. Before we can verify if this claim is true, we have to create an example project that we […] Read more
Gradle
The traditional way to run a Spring web application on a remote server is to package it into a war file and deploy that file into a servlet container. Although this method has served us well in the past, managing multiple servlet containers has always been a bit cumbersome. Spring Boot provides one solution to […] Read more
My previous blog post described how we can add integration tests to our Gradle build. A few days after I had published that blog post, I learned that we don’t have to do everything from the scratch (thanks David) because we can simplify our build script by using the Gradle TestSets plugin. This blog post […] Read more
Because the standard project layout of a Java project defines only one test directory (src/test), we have no standard way to add integration tests to our Gradle build. If we want to use the standard project layout, we can add integration tests to our Gradle build by using one of the following options: We can […] Read more
This blog post describes how we can create a web application project with Gradle. To be more specific, we want to create a web application project that uses Java, package our web application into a WAR file, and run our web application in a development environment. Let’s find out how we can fulfil these requirements. […] Read more
Although we can create a working application by using only one module, sometimes it is wiser to divide our application into multiple smaller modules. Because this is a rather common use case, every self-respecting build tool must support it, and Gradle is no exception. If a Gradle project has more than one module, it is […] Read more