File tree Expand file tree Collapse file tree 3 files changed +8
-22
lines changed
Expand file tree Collapse file tree 3 files changed +8
-22
lines changed Original file line number Diff line number Diff line change 2727 java-version : ' 8'
2828 - name : Build with Gradle
2929 env :
30- ORG_GRADLE_PROJECT_OSSRH_USERNAME : Bearer ${{ secrets.OSSRH_USERNAME }}
31- ORG_GRADLE_PROJECT_OSSRH_PASSWORD : Bearer ${{ secrets.OSSRH_PASSWORD }}
30+ ORG_GRADLE_PROJECT_OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
31+ ORG_GRADLE_PROJECT_OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
3232 ORG_GRADLE_PROJECT_mainAuthHeaderName : Authorization
3333 ORG_GRADLE_PROJECT_mainAuthHeaderValue : Bearer ${{ secrets.CENTRAL_AUTH_TOKEN }}
3434 run : ./gradlew build publish
Original file line number Diff line number Diff line change @@ -241,16 +241,9 @@ publishing {
241241
242242 setUrl(if (local) localUrl else if (doRelease.toBoolean()) releasesRepoUrl else snapshotsRepoUrl)
243243 if (! local) {
244- if (doRelease.toBoolean()) {
245- credentials {
246- username = ossrhMavenUsername
247- password = ossrhMavenPassword
248- }
249- } else {
250- credentials(HttpHeaderCredentials ::class )
251- authentication {
252- create<HttpHeaderAuthentication >(" header" )
253- }
244+ credentials {
245+ username = ossrhMavenUsername
246+ password = ossrhMavenPassword
254247 }
255248 }
256249 }
Original file line number Diff line number Diff line change @@ -414,16 +414,9 @@ publishing {
414414
415415 setUrl(if (local) localUrl else if (doRelease.toBoolean()) releasesRepoUrl else snapshotsRepoUrl)
416416 if (! local) {
417- if (doRelease.toBoolean()) {
418- credentials {
419- username = ossrhMavenUsername
420- password = ossrhMavenPassword
421- }
422- } else {
423- credentials(HttpHeaderCredentials ::class )
424- authentication {
425- create<HttpHeaderAuthentication >(" header" )
426- }
417+ credentials {
418+ username = ossrhMavenUsername
419+ password = ossrhMavenPassword
427420 }
428421 }
429422 }
You can’t perform that action at this time.
0 commit comments