The following software has to be installed on your computer to be able to build and run the software:
- Git
- JDK >= 25. If you use SDKMAN! to manage your Java installations, you can install the required
JDK by running the following command:
sdk env install
Gradle is the build tool of this project. The Gradle build task can be used to test and build the source code:
./gradlew buildThis project uses a combination of fast running 'unit' tests and 'slower' integration tests to verify the correctness of the source code.
All tests can be run with the Gradle check task as follows:
./gradlew checkPer module, the 'unit' tests can be found in the src/test/java folder. They can be run with Gradle like this:
./gradlew testPer module, the integration tests can be found in the src/integrationTest/java folder. Run them with Gradle like this:
./gradlew integrationTestRunning the Spring Boot application locally can be done with Gradle like this:
./gradlew bootRunThe Gradle bootRun task has been configured to activate the local profile by default.
IntelliJ run configurations have been provided in the intellij folder for:
- doing a full build
- running all tests
- running only the unit tests
- running the Spring Boot application
All dependency and plugin versions are managed with a Gradle version catalog. From the Gradle manual:
A version catalog is a list of dependencies, represented as dependency coordinates, that a user can pick from when declaring dependencies in a build script.
The actual versions used in this project can be found in the gradle/libs.versions.toml file. Changing any version in this TOML file is all what's needed to upgrade the dependency or plugin.
To upgrade Java, you need to make the following changes:
- Change the version of the Java toolchain used by Gradle in the Java module convention plugin
- Specify the new version in the SDKMAN! configuration file .sdkmanrc and install it
by running:
sdk env install
- Use the new JDK as your project SDK in your IDE. Follow these instructions for setting up the project JDK in IntelliJ.
The Gradle Wrapper is used to build this software. Upgrading Gradle can be done by updating your wrapper properties:
./gradlew wrapper --gradle-version=<new_version>