Skip to content

Commit 5803602

Browse files
committed
force release to central
1 parent 270bc43 commit 5803602

File tree

4 files changed

+15
-27
lines changed

4 files changed

+15
-27
lines changed

.github/workflows/release-publish.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
java-version: '17'
2424
distribution: 'temurin'
2525
cache: 'maven'
26-
server-id: ossrh
27-
server-username: MAVEN_USERNAME
28-
server-password: MAVEN_PASSWORD
26+
server-id: central
27+
server-username: CENTRAL_TOKEN_USERNAME
28+
server-password: CENTRAL_TOKEN_PASSWORD
2929
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
3030
gpg-passphrase: GPG_PASSPHRASE
3131

@@ -39,24 +39,24 @@ jobs:
3939
cd accessors-smart
4040
./mvnw clean deploy -q -P release-sign-artifacts
4141
env:
42-
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
43-
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
42+
CENTRAL_TOKEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
43+
CENTRAL_TOKEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
4444
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
4545

4646
- name: Release json-smart
4747
run: |
4848
cd json-smart
4949
./mvnw clean deploy -q -P release-sign-artifacts
5050
env:
51-
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
52-
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
51+
CENTRAL_TOKEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
52+
CENTRAL_TOKEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
5353
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
5454

5555
- name: Release json-smart-action
5656
run: |
5757
cd json-smart-action
5858
./mvnw clean deploy -q -P release-sign-artifacts
5959
env:
60-
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
61-
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
60+
CENTRAL_TOKEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
61+
CENTRAL_TOKEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
6262
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

accessors-smart/pom.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,9 @@ limitations under the License.
5959
<url>https://github.com/netplex/json-smart-v2</url>
6060
</scm>
6161
<distributionManagement>
62-
<snapshotRepository>
63-
<id>ossrh</id>
64-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
65-
</snapshotRepository>
6662
<repository>
67-
<id>ossrh</id>
68-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
63+
<id>central</id>
64+
<url>https://central.sonatype.com/api/v1/publisher/upload</url>
6965
</repository>
7066
</distributionManagement>
7167
<!-- release with: export GPG_TTY=$(tty); mvn clean deploy -P release-sign-artifacts -->

json-smart-action/pom.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,9 @@
5151
<url>https://github.com/netplex/json-smart-v2</url>
5252
</scm>
5353
<distributionManagement>
54-
<snapshotRepository>
55-
<id>ossrh</id>
56-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
57-
</snapshotRepository>
5854
<repository>
59-
<id>ossrh</id>
60-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
55+
<id>central</id>
56+
<url>https://central.sonatype.com/api/v1/publisher/upload</url>
6157
</repository>
6258
</distributionManagement>
6359
<!-- release with: export GPG_TTY=$(tty); mvn clean deploy -P release-sign-artifacts -->

json-smart/pom.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,9 @@ limitations under the License.
6666
<url>https://github.com/netplex/json-smart-v2</url>
6767
</scm>
6868
<distributionManagement>
69-
<snapshotRepository>
70-
<id>ossrh</id>
71-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
72-
</snapshotRepository>
7369
<repository>
74-
<id>ossrh</id>
75-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
70+
<id>central</id>
71+
<url>https://central.sonatype.com/api/v1/publisher/upload</url>
7672
</repository>
7773
</distributionManagement>
7874
<!-- release with: export GPG_TTY=$(tty); mvn clean deploy -P release-sign-artifacts -->

0 commit comments

Comments
 (0)