File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
- # CENTRAL_PORTAL_USER
2
- # CENTRAL_PORTAL_PASS64 (base64 NOTE: `base64` and `openssl base64` failed, had to use Java
1
+ # NEXUS_USER
2
+ # NEXUS_PASS64 (base64 NOTE: `base64` and `openssl base64` failed, had to use Java
3
3
# byte[] data = "{{password}}".getBytes(StandardCharsets.UTF_8);
4
4
# String encoded = new String(Base64.getEncoder().encode(data), StandardCharsets.UTF_8);
5
5
# System.out.println(encoded);
32
32
contents : write
33
33
env :
34
34
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
- ORG_GRADLE_PROJECT_central_portal_user : ${{ secrets.CENTRAL_PORTAL_USER }}
36
- ORG_GRADLE_PROJECT_central_portal_pass64 : ${{ secrets.CENTRAL_PORTAL_PASS64 }}
35
+ ORG_GRADLE_PROJECT_nexus_user : ${{ secrets.NEXUS_USER }}
36
+ ORG_GRADLE_PROJECT_nexus_pass64 : ${{ secrets.NEXUS_PASS64 }}
37
37
ORG_GRADLE_PROJECT_gpg_passphrase : ${{ secrets.GPG_PASSPHRASE }}
38
38
ORG_GRADLE_PROJECT_gpg_key64 : ${{ secrets.GPG_KEY64 }}
39
39
steps :
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ def decode64(String varName) {
11
11
12
12
if (project. parent == null ) {
13
13
group = ' com.diffplug.spotless'
14
- def pass = System . env[' ORG_GRADLE_PROJECT_central_portal_pass64 ' ]
14
+ def pass = System . env[' ORG_GRADLE_PROJECT_nexus_pass64 ' ]
15
15
if (pass != null ) {
16
16
pass = pass. decodeBase64()
17
17
}
@@ -22,8 +22,8 @@ if (project.parent == null) {
22
22
sonatype {
23
23
nexusUrl. set(uri(" https://ossrh-staging-api.central.sonatype.com/service/local/" ))
24
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 ' )
25
+ username = System . env[' ORG_GRADLE_PROJECT_nexus_user ' ]
26
+ password = decode64(' ORG_GRADLE_PROJECT_nexus_pass64 ' )
27
27
}
28
28
}
29
29
}
You can’t perform that action at this time.
0 commit comments