grumpyf0x48 / java-21-gradle-quickstart

A template repository to build a minimal Java 21 application using Gradle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

java-21-gradle-quickstart

Build Native Build

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

Rename the application

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

Package the application

To package the application, run the following command:

./gradlew distZip

Package the native application

./gradlew nativeDistZip

Run the application

./gradlew run

Run the native application

./gradlew nativeRun

About

A template repository to build a minimal Java 21 application using Gradle


Languages

Language:Makefile 57.1%Language:Java 42.9%