1

Use header auth
Some checks failed
Build & Release / release-library (push) Failing after 1m10s

This commit is contained in:
2024-11-04 18:26:21 +01:00
parent 43c5192bbf
commit 018682fcea
2 changed files with 7 additions and 5 deletions

View File

@@ -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")
}
}
}