Use header auth
Some checks failed
Build & Release / release-library (push) Failing after 1m10s
Some checks failed
Build & Release / release-library (push) Failing after 1m10s
This commit is contained in:
@@ -42,9 +42,12 @@ publishing {
|
||||
maven {
|
||||
name = "sonatype"
|
||||
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
|
||||
credentials {
|
||||
username = findProperty('SONATYPE_USER') as String
|
||||
password = findProperty('SONATYPE_PASSWORD') as String
|
||||
credentials(HttpHeaderCredentials) {
|
||||
name = "Authorization"
|
||||
value = "Bearer ${ findProperty('SONATYPE_TOKEN') as String }"
|
||||
}
|
||||
authentication {
|
||||
create("header")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user