Skip to content

aalmiray/sb-cli-jlink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sb-cli-jlink

Sample Spring Boot CLI application (packaged with jlink and jpackage)

Shows how a Spring Boot application may be configured and packaged to create cross-platform custom Java Runtimes with jlink, package each JR as a zip distribution and publish them as assets on a Git release via JReleaser.

Prerequisites

Warning
Java 17 is required to build this sample.
$ ./mvnw -Pjdks package -DskipTests
$ ./mvnw -Passemble package

Inspect the artifacts found at target/jreleaser/assemble/sb-cli-jlink/jlink and run one:

$ target/jreleaser/assemble/sb-cli-jlink/jlink/work-linux-x86_64/sb-cli-jlink-0.1.0-linux-x86_64/bin/sb-cli-jlink

Releasing

Warning
Requires a GitHub token for publishing a release to GitHub.
  1. Create a GitHub Personal Access Token. See Creating a personal access token for instructions.

  2. Store the token as an environment variable (JRELEASER_GITHUB_TOKEN) or save it at a configuration file as explained at JReleaser’s environment settings.

Posting a release from a local environment

Display configuration

$ ./mvnw -Prelease jreleaser:config

Dryrun mode

$ ./mvnw -Prelease jreleaser:release -Djreleaser.dryrun=true

For production

$ ./mvnw -Prelease jreleaser:release

Inspect additional artifacts found at target/jreleaser:

target/jreleaser/
├── output.properties
├── release
│   └── CHANGELOG.md
└── trace.log

About

Sample Spring Boot CLI application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages