Skip to content

Commit 3245835

Browse files
Merge pull request #213 from Backblaze/sonatype-plugin-update
Update to use latest version of sonatype/nexus plugin
2 parents 393cc53 + ef21ff8 commit 3245835

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
RELEASE_BUILD: true
3232
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
3333
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
34-
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
35-
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
34+
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_TOKEN_USERNAME }}
35+
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_TOKEN_PASSWORD }}
3636

3737
- name: Get tag name
3838
id: get_tag

build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
// License https://www.backblaze.com/using_b2_code.html
33

44
plugins {
5-
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
5+
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
66
}
77

88
nexusPublishing {
99
repositories {
1010
sonatype {
11-
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
11+
// see https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration
12+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
1213
}
1314
}
1415
}

0 commit comments

Comments
 (0)