Use header auth with Sonatype central
Some checks failed
Build & Release / release-library (push) Failing after 1m53s
Some checks failed
Build & Release / release-library (push) Failing after 1m53s
This commit is contained in:
@@ -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 }"
|
||||
|
||||
Reference in New Issue
Block a user