# Configure Java 11 if the previous steps used an older version of Java
jdk_switcher home openjdk11
jdk_switcher use openjdk11
# Get the jreleaser downloader
curl -sL https://git.io/get-jreleaser > get_jreleaser.java
# Download JReleaser with version = <version>
# Change <version> to a tagged JReleaser release
# or leave it out to pull `latest`.
java get_jreleaser.java <version>
# Let's check we've got the right version
java -jar jreleaser-cli.jar --version
# Execute a JReleaser command such as 'full-release'
java -jar jreleaser-cli.jar full-release