File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 \
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments