Skip to content

Commit bcfbbb0

Browse files
committed
chore: migrate Sonatype OSSRH to Central Portal
1 parent 60ad4cc commit bcfbbb0

File tree

3 files changed

+20
-10
lines changed

3 files changed

+20
-10
lines changed

.github/workflows/maven-v1-pulls.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ jobs:
1313
java: [ 11, 17 ]
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717
- name: Set up Java
18-
uses: actions/setup-java@v1
18+
uses: actions/setup-java@v4
1919
with:
2020
java-version: ${{ matrix.java }}
21+
distribution: temurin
22+
server-id: central
2123
- name: Cache local Maven repository
2224
uses: actions/cache@v2
2325
with:

.github/workflows/maven-v1.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ jobs:
1313
java: [ 11, 17 ]
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717
- name: Set up Java
18-
uses: actions/setup-java@v1
18+
uses: actions/setup-java@v4
1919
with:
2020
java-version: ${{ matrix.java }}
21-
server-id: sonatype-nexus-snapshots
21+
distribution: temurin
22+
server-id: central
2223
server-username: MAVEN_USERNAME
2324
server-password: MAVEN_PASSWORD
2425
- name: Cache local Maven repository
@@ -47,5 +48,5 @@ jobs:
4748
echo "not deploying on java version: " ${MY_JAVA_VERSION}
4849
fi
4950
env:
50-
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
51-
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
51+
MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
52+
MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}

pom.xml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,16 @@
175175
<version>3.12.1</version>
176176
</plugin>
177177
<plugin>
178-
<groupId>org.apache.maven.plugins</groupId>
179-
<artifactId>maven-release-plugin</artifactId>
180-
<version>2.5.3</version>
178+
<groupId>org.sonatype.central</groupId>
179+
<artifactId>central-publishing-maven-plugin</artifactId>
180+
<version>0.7.0</version>
181+
<extensions>true</extensions>
182+
<configuration>
183+
<publishingServerId>central</publishingServerId>
184+
<autoPublish>true</autoPublish>
185+
<waitUntil>published</waitUntil>
186+
<waitMaxTime>3600</waitMaxTime>
187+
</configuration>
181188
</plugin>
182189
</plugins>
183190
<pluginManagement>

0 commit comments

Comments
 (0)