Helloworld in Java (SINGLE_JAR)

The https://github.com/jreleaser/helloworld-java-jar repository shows how to configure GitHub Actions and JReleaser to:

  • compile a helloworld app

  • create rolling early-access releases with JReleaser on every push to main branch

There are two modes for running this application: classpath & modulepath.

classpath

  1. ./mvnw verify

  2. java -jar target/helloworld-<version>.jar

modulepath

  1. ./mvnw verify

  2. java -p target/helloworld-<version>.jar -m ororg.jreleaser.examples/org.jreleaser.examples.HelloWorld