Skip to content

Commit aa73d24

Browse files
committed
Prepare for migrating to Sonatype central
1 parent 8288f1e commit aa73d24

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

.github/workflows/sdk_publish.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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:

.speakeasy/gen.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ java:
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

.speakeasy/workflow.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)