Use header auth with Sonatype central
Build & Release / release-library (push) Failing after 1m53s
Details
Build & Release / release-library (push) Failing after 1m53s
Details
This commit is contained in:
parent
306ba1f81c
commit
21c8543ea4
|
@ -39,4 +39,4 @@ jobs:
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: ./gradlew --info --stacktrace test
|
run: ./gradlew --info --stacktrace test
|
||||||
- name: Upload to Maven Central
|
- name: Upload to Maven Central
|
||||||
run: ./gradlew --info --stacktrace publish
|
run: ./gradlew --debug publish
|
|
@ -41,7 +41,7 @@ publishing {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
name = "sonatype"
|
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) {
|
credentials(HttpHeaderCredentials) {
|
||||||
name = "Authorization"
|
name = "Authorization"
|
||||||
value = "Bearer ${ findProperty('SONATYPE_TOKEN') as String }"
|
value = "Bearer ${ findProperty('SONATYPE_TOKEN') as String }"
|
||||||
|
|
Loading…
Reference in New Issue