Skip to content

Commit 88d9c20

Browse files
back to ossrh
1 parent 0d11634 commit 88d9c20

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/publishing2sonatype.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
- name: Sonatype Publish
3838
run: |
3939
./gradlew -S publishJarPublicationToStagingRepository
40-
# BEARER=$(printf "${{ secrets.SUSER }}:${{ secrets.SPASSWORD }}" | base64)
41-
# curl --request POST \
42-
# --verbose \
43-
# --header "Authorization: Bearer ${BEARER}" \
44-
# https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/${{ secrets.SREPO_ID }}
40+
BEARER=$(printf "${{ secrets.SUSER }}:${{ secrets.SPASSWORD }}" | base64)
41+
curl --request POST \
42+
--verbose \
43+
--header "Authorization: Bearer ${BEARER}" \
44+
https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/${{ secrets.SREPO_ID }}

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ publishing {
158158
repositories {
159159
maven {
160160
name 'staging'
161-
url = 'https://central.sonatype.com/api/v1/publisher/deployments/download/'
161+
url = 'https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/'
162162

163163
credentials {
164164
username = "${sonatypeUsername}"

0 commit comments

Comments
 (0)