java-21-gradle-quickstart is a template repository to bootstrap a new Java application using:
- Java 21
- Gradle 8 with Kotlin DSL for build
- GraalVM for native build
- Maven Central for dependencies
- JUnit 5 for tests
- EditorConfig for code formatting
- GitHub workflow to build, test, package the application and upload its distributions
- Renovate for dependencies update
By default, this template creates an application named gradle_quickstart
in the package org.grumpyf0x48
.
Once you have created a repository using this template, you can rename it for example to brand-new-app
in a package named org.your.pkg
using the following command:
APPLICATION_NAME=brand-new-app \
PACKAGE_NAME=org.your.pkg \
make update-application
To package the application, run the following command:
./gradlew distZip
./gradlew nativeDistZip
./gradlew run
./gradlew nativeRun