File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1- # NEXUS_USER
2- # NEXUS_PASS64 (base64 NOTE: `base64` and `openssl base64` failed, had to use Java
1+ # CENTRAL_PORTAL_USER
2+ # CENTRAL_PORTAL_PASS64 (base64 NOTE: `base64` and `openssl base64` failed, had to use Java
33# byte[] data = "{{password}}".getBytes(StandardCharsets.UTF_8);
44# String encoded = new String(Base64.getEncoder().encode(data), StandardCharsets.UTF_8);
55# System.out.println(encoded);
3232 contents : write
3333 env :
3434 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35- ORG_GRADLE_PROJECT_nexus_user : ${{ secrets.NEXUS_USER }}
36- ORG_GRADLE_PROJECT_nexus_pass64 : ${{ secrets.NEXUS_PASS64 }}
35+ ORG_GRADLE_PROJECT_central_portal_user : ${{ secrets.CENTRAL_PORTAL_USER }}
36+ ORG_GRADLE_PROJECT_central_portal_pass64 : ${{ secrets.CENTRAL_PORTAL_PASS64 }}
3737 ORG_GRADLE_PROJECT_gpg_passphrase : ${{ secrets.GPG_PASSPHRASE }}
3838 ORG_GRADLE_PROJECT_gpg_key64 : ${{ secrets.GPG_KEY64 }}
3939 steps :
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ def decode64(String varName) {
1111
1212if (project. parent == null ) {
1313 group = ' com.diffplug.spotless'
14- def pass = System . env[' ORG_GRADLE_PROJECT_nexus_pass64 ' ]
14+ def pass = System . env[' ORG_GRADLE_PROJECT_central_portal_pass64 ' ]
1515 if (pass != null ) {
1616 pass = pass. decodeBase64()
1717 }
@@ -20,10 +20,10 @@ if (project.parent == null) {
2020 nexusPublishing {
2121 repositories {
2222 sonatype {
23- nexusUrl. set(uri(" https://s01.oss .sonatype.org /service/local/" ))
24- snapshotRepositoryUrl. set(uri(" https://s01.oss. sonatype.org/content/repositories/ snapshots/" ))
25- username = System . env[' ORG_GRADLE_PROJECT_nexus_user ' ]
26- password = decode64(' ORG_GRADLE_PROJECT_nexus_pass64 ' )
23+ nexusUrl. set(uri(" https://ossrh-staging-api.central .sonatype.com /service/local/" ))
24+ snapshotRepositoryUrl. set(uri(" https://central. sonatype.com/repository/maven- snapshots/" ))
25+ username = System . env[' ORG_GRADLE_PROJECT_central_portal_user ' ]
26+ password = decode64(' ORG_GRADLE_PROJECT_central_portal_pass64 ' )
2727 }
2828 }
2929 }
You can’t perform that action at this time.
0 commit comments