File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858 run : |
5959 ./gradlew.bat build
6060
61+ - name : Run release deploy in dry-run mode
62+ if : matrix.os == 'ubuntu-latest' && matrix.java-version == '25'
63+ env :
64+ GNUPGHOME : ${{ runner.temp }}/gnupg
65+ JRELEASER_GPG_PUBLIC_KEY : ${{ runner.temp }}/public.asc
66+ JRELEASER_GPG_SECRET_KEY : ${{ runner.temp }}/private.asc
67+ JRELEASER_GPG_PASSPHRASE : dry-run
68+ NEXUS_USERNAME : dry-run
69+ NEXUS_PASSWORD : dry-run
70+ run : |
71+ # Throwaway signing key and dummy credentials; --dryrun skips all remote operations.
72+ mkdir -m 700 "$GNUPGHOME"
73+ gpg --batch --passphrase "$JRELEASER_GPG_PASSPHRASE" --quick-gen-key 'minio-java CI <ci@example.invalid>' rsa3072 sign never
74+ gpg --batch --armor --export > "$JRELEASER_GPG_PUBLIC_KEY"
75+ gpg --batch --pinentry-mode loopback --passphrase "$JRELEASER_GPG_PASSPHRASE" --armor --export-secret-keys > "$JRELEASER_GPG_SECRET_KEY"
76+ ./gradlew publishMinioJavaPublicationToPreDeployRepository jreleaserDeploy --dryrun -Prelease
77+
6178 - name : Setup java ${{ matrix.java-version }} for testing
6279 if : matrix.java-version != '25'
6380 uses : actions/setup-java@v6
Original file line number Diff line number Diff line change 1818/* gradleVersion = '9.8.2' */
1919/* *******************************/
2020
21+ buildscript {
22+ configurations. classpath {
23+ // JReleaser 1.26.0 is built against JGit 5.13 and fails with NoClassDefFoundError
24+ // org/eclipse/jgit/lib/GpgObjectSigner (removed in JGit 7) when Spotless 8.x pulls JGit 7
25+ // onto the shared plugin classpath. Spotless works with 5.13 for this build. Remove once
26+ // JReleaser supports JGit 7.
27+ resolutionStrategy. force ' org.eclipse.jgit:org.eclipse.jgit:5.13.5.202508271544-r'
28+ }
29+ }
30+
2131plugins {
2232 id ' com.gradleup.shadow' version ' 9.6.1'
2333 id ' com.github.spotbugs' version ' 6.5.13'
You can’t perform that action at this time.
0 commit comments