From 21c8543ea44674f52f141de2b09858f10099a1d8 Mon Sep 17 00:00:00 2001 From: John Ahlroos Date: Mon, 4 Nov 2024 20:27:58 +0100 Subject: [PATCH] Use header auth with Sonatype central --- .gitea/workflows/release.yaml | 2 +- build.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 181052d..5eaa882 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -39,4 +39,4 @@ jobs: - name: Run tests run: ./gradlew --info --stacktrace test - name: Upload to Maven Central - run: ./gradlew --info --stacktrace publish \ No newline at end of file + run: ./gradlew --debug publish \ No newline at end of file diff --git a/build.gradle b/build.gradle index a8d76dd..e339a50 100644 --- a/build.gradle +++ b/build.gradle @@ -41,7 +41,7 @@ publishing { repositories { maven { name = "sonatype" - url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/") + url = uri("https://central.sonatype.com/api/v1/publisher/upload") credentials(HttpHeaderCredentials) { name = "Authorization" value = "Bearer ${ findProperty('SONATYPE_TOKEN') as String }"