Skip to content

Instantly share code, notes, and snippets.

@aalmiray
Created July 27, 2025 12:45
Show Gist options
  • Save aalmiray/d7312560cfbdf9c9b3e2112d6f3ff811 to your computer and use it in GitHub Desktop.
Save aalmiray/d7312560cfbdf9c9b3e2112d6f3ff811 to your computer and use it in GitHub Desktop.
jreleaser publish --yolo --packager docker
project:
version: '1.0.0-SNAPSHOT'
name: helloworld
description: HelloWorld in Java
longDescription: HelloWorld in Java
links:
homepage: https://github.com/jreleaser/helloworld-java-bin
authors:
- Andres Almiray
license: APACHE-2.0
inceptionYear: 2023
stereotype: CLI
languages:
java:
version: 11
groupId: org.jreleaser.examples
artifactId: helloworld
mainClass: org.jreleaser.examples.HelloWorld
release:
github:
overwrite: true
changelog:
formatted: ALWAYS
preset: conventional-commits
contributors:
format: '- {{contributorName}}{{#contributorUsernameAsLink}} ({{.}}){{/contributorUsernameAsLink}}'
assemble:
javaArchive:
helloworld:
active: ALWAYS
formats: [ ZIP ]
fileSets:
- input: '.'
includes: [ 'LICENSE' ]
mainJar:
path: target/{{distributionName}}-{{projectVersion}}.jar
packagers:
docker:
active: ALWAYS
repository:
active: ALWAYS
owner: aalmiray
registries:
- serverName: DEFAULT
active: NEVER
signing:
active: ALWAYS
armored: true
deploy:
maven:
mavenCentral:
mc:
active: RELEASE
url: https://central.sonatype.com/api/v1/publisher
stagingRepositories:
- target/staging-deploy
$ jreleaser publish --yolo --packager docker --dry-run
[INFO] JReleaser 1.20.0-SNAPSHOT
[INFO] Configuring with jreleaser.yml
[INFO] - basedir set to /private/tmp/helloworld-java-bin
[INFO] - outputdir set to /private/tmp/helloworld-java-bin/out/jreleaser
[INFO] Reading configuration
[INFO] git-root-search set to false
[INFO] Loading variables from /Users/aalmiray/.jreleaser/config.toml
[INFO] Validating configuration
[INFO] Strict mode set to false
[WARN] [validation] Deployer mavenCentral.mc disabled because project is snapshot
[INFO] Project version set to 1.0.0-SNAPSHOT
[INFO] Release is snapshot
[INFO] Timestamp is 2025-07-27T14:42:17.233044+02:00
[INFO] HEAD is at eaa60a9
[INFO] Platform is osx-aarch_64
[INFO] yolo set to true
[INFO] dry-run set to true
[INFO] Included packagers: [docker]
[INFO] Calculating checksums for distributions and files
[INFO] [checksum] out/jreleaser/assemble/helloworld/java-archive/helloworld-1.0.0-SNAPSHOT.zip.sha256
[INFO] Preparing distributions
[INFO] - Preparing helloworld distribution
[INFO] [docker] preparing helloworld distribution
[INFO] Packaging distributions
[INFO] - Packaging helloworld distribution
[INFO] [docker] packaging helloworld distribution
[INFO] [docker] - jreleaser/helloworld:early-access
[INFO] Publishing distributions
[INFO] - Publishing helloworld distribution
[INFO] [docker] publishing helloworld distribution
[INFO] [docker] setting up repository aalmiray/helloworld-docker
[INFO] [docker] pushing to https://github.com/aalmiray/helloworld-docker.git
[INFO] [docker] - jreleaser/helloworld
[INFO] Writing output properties to out/jreleaser/output.properties
[INFO] JReleaser succeeded after 3.929 s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment