Skip to content

Commit 73a549d

Browse files
committed
update to use latest version of sonatype/nexus plugin
1 parent 393cc53 commit 73a549d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-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: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
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 {
9+
repositories {
10+
sonatype()
11+
}
912
repositories {
1013
sonatype {
11-
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
14+
// see https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration
15+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
1216
}
1317
}
1418
}

0 commit comments

Comments
 (0)