Skip to content

jreleaser/helloworld-java-slsa

Helloworld in Java

This repository shows how to configure GitHub Actions, JReleaser, and JReleaser SLSA builder to:

  • compile a helloworld app

  • assemble a zip distributions with JReleaser, including SBOM and SWID tag

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

  • generate SLSA attestation upon release

JReleaser requires 2 additional inputs that may be set as environment variables, JRELEASER_PROJECT_VERSION and JRELEASER_GITHUB_TOKEN. More information about environment variable configuration may be found in the guide.

Requirements

  • Java 11 or greater.

  • JReleaser 1.17.0 or greater.

We recommend SDKMan to install these requirements.

Build

Use the provided Maven wrapper script to build the project:

$ ./mvnw verify

Next, assemble the Zip distribution by invoking

$ jreleaser assemble

You may perform a release by invoking

$ jreleaser release
ℹ️
SLSA attestation can only be generated when running on GitHub Actions.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages