Skip to content

Commit e64c771

Browse files
committed
build: rename distribution from central to ossrh
- remove Maven warning about bad usage
1 parent 8abf292 commit e64c771

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/maven-central.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
with:
3333
java-version: 21
3434
distribution: 'temurin'
35-
server-id: central
35+
server-id: ossrh
3636
server-username: CENTRAL_USERNAME
3737
server-password: CENTRAL_TOKEN
3838
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}

‎pom.xml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@
4242

4343
<distributionManagement>
4444
<repository>
45-
<id>central</id>
45+
<id>ossrh</id>
4646
<name>Maven Central Release Repository</name>
4747
<url>https://ossrh-staging-api.central.sonatype.com/service/local/</url>
4848
</repository>
4949
<snapshotRepository>
50-
<id>central</id>
50+
<id>ossrh</id>
5151
<name>Maven Central Snapshots</name>
5252
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
5353
</snapshotRepository>
@@ -1813,7 +1813,7 @@
18131813
<version>0.12.0</version>
18141814
<extensions>true</extensions>
18151815
<configuration>
1816-
<publishingServerId>central</publishingServerId>
1816+
<publishingServerId>ossrh</publishingServerId>
18171817
<autoPublish>true</autoPublish>
18181818
</configuration>
18191819
</plugin>

0 commit comments

Comments
 (0)