Skip to content

Commit a8bdee8

Browse files
committed
setup maven central
1 parent 2401211 commit a8bdee8

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/BuildTestSnapshot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ jobs:
3232
distribution: 'temurin'
3333
java-version: '17'
3434

35+
- name: Restore gradle.properties
36+
shell: bash
37+
run: |
38+
mkdir -p ~/.gradle/
39+
echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV
40+
3541
- name: Setup Gradle
3642
uses: gradle/actions/setup-gradle@v4
3743

lib/build.gradle.kts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,12 @@ jreleaser {
243243
signing {
244244
active.set(org.jreleaser.model.Active.ALWAYS)
245245
armored.set(true)
246-
publicKey.set(String(Base64.getDecoder().decode(findProperty("W3W_GPG_PUBLIC_KEY")?.toString())))
247-
secretKey.set(String(Base64.getDecoder().decode(findProperty("W3W_GPG_SECRET_KEY")?.toString())))
246+
publicKey.set(
247+
findProperty("W3W_GPG_PUBLIC_KEY")?.toString()
248+
?.let { String(Base64.getDecoder().decode(it)) } ?: "")
249+
secretKey.set(
250+
findProperty("W3W_GPG_SECRET_KEY")?.toString()
251+
?.let { String(Base64.getDecoder().decode(it)) } ?: "")
248252
passphrase.set(findProperty("W3W_GPG_PASSPHRASE")?.toString())
249253
}
250254
deploy {
@@ -265,4 +269,4 @@ jreleaser {
265269
}
266270
//endregion
267271

268-
//endregion
272+
//endregion

0 commit comments

Comments
 (0)