Skip to content

Migrate from OSSRH to Central Publisher Portal #2962

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jobs:
name: 'Test'
command: |
source "$HOME/.sdkman/bin/sdkman-init.sh"
./mvnw -ntp -B verify
./mvnw -ntp -B verify -T1C
- verify-formatting

deploy:
Expand Down Expand Up @@ -191,7 +191,7 @@ workflows:
name: 'deploy snapshot'
requires:
- 'snapshot'
context: Sonatype
context: central
filters:
<<: *master-only

Expand All @@ -205,6 +205,6 @@ workflows:
name: 'release to maven central'
requires:
- 'setup-environment-release'
context: Sonatype
context: central
filters:
<<: *tags-only
6 changes: 3 additions & 3 deletions .circleci/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>ossrh</id>
<username>${env.SONATYPE_USER}</username>
<password>${env.SONATYPE_PASSWORD}</password>
<id>central</id>
<username>${env.CENTRAL_TOKEN_USERNAME}</username>
<password>${env.CENTRAL_TOKEN_PASSWORD}</password>
</server>
</servers>
<profiles>
Expand Down
39 changes: 0 additions & 39 deletions .github/files/settings.xml

This file was deleted.

53 changes: 0 additions & 53 deletions .github/files/toolchains.xml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/auto-merge-dependabot.yml

This file was deleted.

105 changes: 0 additions & 105 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

23 changes: 12 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@

<distributionManagement>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<id>central</id>
<url>https://central.sonatype.com/api/v1/publisher</url>
</repository>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<id>central</id>
<url>https://central.sonatype.com/api/v1/publisher</url>
</snapshotRepository>
</distributionManagement>

Expand Down Expand Up @@ -194,6 +194,7 @@
<maven-release-plugin.version>3.1.1</maven-release-plugin.version>
<maven-bundle-plugin.version>6.0.0</maven-bundle-plugin.version>
<centralsync-maven-plugin.version>0.1.1</centralsync-maven-plugin.version>
<central-publishing-maven-plugin.version>0.8.0</central-publishing-maven-plugin.version>
<maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version>
<bom-generator.version>0.200.4</bom-generator.version>
<bom.template.file.path>file://${project.basedir}/src/config/bom.xml</bom.template.file.path>
Expand Down Expand Up @@ -876,15 +877,15 @@
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.7.0</version>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>${central-publishing-maven-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<stagingProgressTimeoutMinutes>15</stagingProgressTimeoutMinutes>
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
<waitUntil>published</waitUntil>
<checksums>all</checksums>
</configuration>
</plugin>
<plugin>
Expand Down