File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,15 @@ jobs:
2929 java-version : " 11"
3030 distribution : " corretto"
3131 cache : " gradle"
32- - name : Publish to Sonatype (legacy)
32+ - name : Publish to Sonatype Central
3333 run : |-
3434 pwd
35- ./gradlew publish -x autoLintGradle --no-daemon
35+ ./gradlew build sonatypeCentralUpload -x autoLintGradle --no-daemon
3636 env :
37- MAVEN_USERNAME : ${{ secrets.ossrh_username }}
38- MAVEN_PASSWORD : ${{ secrets.ossrh_password }}
39- ORG_GRADLE_PROJECT_signingKey : ${{ secrets.java_gpg_secret_key }}
40- ORG_GRADLE_PROJECT_signingPassphrase : ${{ secrets.java_gpg_passphrase }}
37+ SONATYPE_USERNAME : ${{ secrets.sonatype_username }}
38+ SONATYPE_PASSWORD : ${{ secrets.sonatype_password }}
39+ SONATYPE_SIGNING_KEY : ${{ secrets.java_gpg_secret_key }}
40+ SIGNING_KEY_PASSPHRASE : ${{ secrets.java_gpg_passphrase }}
4141 - uses : ravsamhq/notify-slack-action@v2
4242 if : always() && env.SLACK_WEBHOOK_URL != ''
4343 with :
Original file line number Diff line number Diff line change 5252 shortName : apache2
5353 url : http://www.apache.org/licenses/LICENSE-2.0.txt
5454 maxMethodParams : 4
55- ossrhURL : https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
5655 outputModelSuffix : output
5756 projectName : api
5857 templateVersion : v2
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ targets:
1818 ossrhPassword : $OSSRH_PASSWORD
1919 gpgSecretKey : $JAVA_GPG_SECRET_KEY
2020 gpgPassPhrase : $JAVA_GPG_PASSPHRASE
21- useSonatypeLegacy : true
2221 codeSamples :
2322 registry :
2423 location : registry.speakeasyapi.dev/styra/styra/openapi-java-code-samples
You can’t perform that action at this time.
0 commit comments