Skip to content

Commit 5aeae3f

Browse files
committed
publish using sonatype staging api
1 parent eafc1b3 commit 5aeae3f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- name: "Gradle Publish"
2929
run: |
30-
./gradlew publishToSonatype -Pversion=${GITHUB_REF:10} \
30+
./gradlew publishToSonatype closeSonatypeStagingRepository -Pversion=${GITHUB_REF:10} \
3131
-Psigning.keyId=${GPG_KEY_ID} \
3232
-Psigning.password=${GPG_PASSPHRASE} \
3333
-Psigning.secretKeyRingFile=${GITHUB_WORKSPACE}/${GPG_KEY_ID}.gpg

build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ configure(listOf(rootProject)) {
4343

4444
nexusPublishing {
4545
repositories {
46-
sonatype()
46+
sonatype {
47+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
48+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
49+
}
4750
}
4851
}
4952

0 commit comments

Comments
 (0)