This project uses Gradle for build automation and dependency management. You are recommended to read this Gradle Tutorial from the se-edu/guides.
Given below are how to use Gradle for some important project tasks.
clean
: Deletes the files created during the previous build tasks (e.g. files in the build
folder).
e.g. ./gradlew clean
shadowJar
: Uses the ShadowJar plugin to creat a fat JAR file in the build/lib
folder, if the current file is outdated.
e.g. ./gradlew shadowJar
.
run
: Builds and runs the application.
runShadow
: Builds the application as a fat JAR, and then runs it.
checkstyleMain
: Runs the code style check for the main code base.
checkstyleTest
: Runs the code style check for the test code base.
test
: Runs all tests.<
./gradlew test
— Runs all tests./gradlew clean test
— Cleans the project and runs testsThis project uses GitHub Actions for CI. The project comes with the necessary GitHub Actions configurations files (in the .github/workflows
folder). No further setting up required.
Here are the steps to create a new release.
gradlew shadow
).v2.0