Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

build: use jreleaser for making release#1635

Merged
harshavardhana merged 1 commit intominio:masterminio/minio-java:masterfrom
balamurugana:build-use-jreleaser-for-making-releasebalamurugana/minio-java:build-use-jreleaser-for-making-releaseCopy head branch name to clipboard
Apr 8, 2025
Merged

build: use jreleaser for making release#1635
harshavardhana merged 1 commit intominio:masterminio/minio-java:masterfrom
balamurugana:build-use-jreleaser-for-making-releasebalamurugana/minio-java:build-use-jreleaser-for-making-releaseCopy head branch name to clipboard

Conversation

@balamurugana
Copy link
Member

Now the build is released with below command

$ ./gradlew \
    build publishMinioJavaPublicationToPreDeployRepository jreleaserDeploy \
    -Prelease \
    -Djreleaser.gpg.passphrase=<GPG_KEY_PASSWORD> \
    -Djreleaser.gpg.public.key=<PATH-TO-PUBLIC-KEY-FROM-GPG-KEY> \
    -Djreleaser.gpg.secret.key=<PATH-TO-PRIVATE-KEY-FROM-GPG-KEY> \
    -Djreleaser.nexus2.username=<NEXUS-USERNAME> \
    -Djreleaser.nexus2.password=<NEXUS-PASSWORD>

For new gpg, private and public keys are generated using below command

$ gpg --export-secret-keys --armor <YOUR-KEY-ID> > private.key
$ gpg --export --armor <YOUR-KEY-ID> > public.key

and secring.gpg is generated using below command

$ gpg --keyring secring.gpg --export-secret-keys > ~/.gnupg/secring.gpg

Now the build is released with below command
```
$ ./gradlew \
    build publishMinioJavaPublicationToPreDeployRepository jreleaserDeploy \
    -Prelease \
    -Djreleaser.gpg.passphrase=<GPG_KEY_PASSWORD> \
    -Djreleaser.gpg.public.key=<PATH-TO-PUBLIC-KEY-FROM-GPG-KEY> \
    -Djreleaser.gpg.secret.key=<PATH-TO-PRIVATE-KEY-FROM-GPG-KEY> \
    -Djreleaser.nexus2.username=<NEXUS-USERNAME> \
    -Djreleaser.nexus2.password=<NEXUS-PASSWORD>
```

For new `gpg`, private and public keys are generated using below command
```
$ gpg --export-secret-keys --armor <YOUR-KEY-ID> > private.key
$ gpg --export --armor <YOUR-KEY-ID> > public.key
```
and `secring.gpg` is generated using below command
```
$ gpg --keyring secring.gpg --export-secret-keys > ~/.gnupg/secring.gpg
```

Signed-off-by: Bala.FA <bala@minio.io>
@harshavardhana harshavardhana merged commit 3835bee into minio:master Apr 8, 2025
8 checks passed
@balamurugana balamurugana deleted the build-use-jreleaser-for-making-release branch April 9, 2025 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.