Skip to content

Commit c68a5b4

Browse files
back to basic auth attempt
1 parent f573082 commit c68a5b4

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/publishing2sonatype.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
- name: Sonatype Publish
3838
run: |
3939
BEARER=$(printf "${{ secrets.SUSER }}:${{ secrets.SPASSWORD }}" | base64)
40-
echo "stagingAuthHeaderName=Authorization" >> ./gradle.properties
41-
echo "stagingAuthHeaderValue=Bearer ${BEARER}" >> ./gradle.properties
40+
# echo "stagingAuthHeaderName=Authorization" >> ./gradle.properties
41+
# echo "stagingAuthHeaderValue=Bearer ${BEARER}" >> ./gradle.properties
4242
./gradlew -S publishJarPublicationToStagingRepository
4343
# curl --request POST \
4444
# --verbose \

build.gradle

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,12 @@ publishing {
158158
repositories {
159159
maven {
160160
name 'staging'
161-
url = 'https://central.sonatype.com/api/v1/publisher/deployments/download/'
161+
url = 'https://central.sonatype.com/api/v1/publisher'
162162

163-
credentials(AuthHeaderValue)
164-
authentication {
165-
header(AuthHeaderName)
163+
credentials {
164+
username = "${sonatypeUsername}"
165+
password = "${sonatypePassword}"
166166
}
167-
168167
}
169168
}
170169
}

0 commit comments

Comments
 (0)