Skip to content

Commit ded5c54

Browse files
committed
migrate to Sonatype Central Portal
1 parent 585e02d commit ded5c54

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

.github/settings.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
<servers>
88
<server>
9-
<id>ossrh</id>
10-
<username>${env.OSSRH_TOKEN_USERNAME}</username>
11-
<password>${env.OSSRH_TOKEN_PASSWORD}</password>
9+
<id>sonatype</id>
10+
<username>${env.SONATYPE_TOKEN_USERNAME}</username>
11+
<password>${env.SONATYPE_TOKEN_PASSWORD}</password>
1212
</server>
1313
</servers>
1414
</settings>

pom.xml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ limitations under the License.
163163
</ciManagement>
164164
<distributionManagement>
165165
<repository>
166-
<id>ossrh</id>
167-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
166+
<id>sonatype</id>
167+
<url>https://central.sonatype.com</url>
168168
</repository>
169169
<snapshotRepository>
170-
<id>ossrh</id>
171-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
170+
<id>sonatype</id>
171+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
172172
</snapshotRepository>
173173
<!-- Dummy - this will NOT actually be used, but is required for mvn site:stage -->
174174
<!-- Use scm-publish plugin for site deployment on GitHub pages -->
@@ -194,6 +194,7 @@ limitations under the License.
194194
<antrun-plugin.version>3.1.0</antrun-plugin.version>
195195
<archetype-plugin.version>3.3.1</archetype-plugin.version>
196196
<assembly-plugin.version>3.7.1</assembly-plugin.version>
197+
<central-publish-plugin.version>0.7.0</central-publish-plugin.version>
197198
<checkstyle-plugin.version>3.6.0</checkstyle-plugin.version>
198199
<clean-plugin.version>3.4.0</clean-plugin.version>
199200
<compiler-plugin.version>3.13.0</compiler-plugin.version>
@@ -585,6 +586,11 @@ limitations under the License.
585586
<artifactId>maven-dependency-plugin</artifactId>
586587
<version>${dependency-plugin.version}</version>
587588
</plugin>
589+
<plugin>
590+
<groupId>org.sonatype.central</groupId>
591+
<artifactId>central-publishing-maven-plugin</artifactId>
592+
<version>${central-publish-plugin.version}</version>
593+
</plugin>
588594
<plugin>
589595
<groupId>org.apache.maven.plugins</groupId>
590596
<artifactId>maven-deploy-plugin</artifactId>
@@ -1100,6 +1106,15 @@ limitations under the License.
11001106
<id>release</id>
11011107
<build>
11021108
<plugins>
1109+
<plugin>
1110+
<groupId>org.sonatype.central</groupId>
1111+
<artifactId>central-publishing-maven-plugin</artifactId>
1112+
<extensions>true</extensions>
1113+
<configuration>
1114+
<deploymentName>AutomataLib ${project.version}</deploymentName>
1115+
<publishingServerId>sonatype</publishingServerId>
1116+
</configuration>
1117+
</plugin>
11031118
<plugin>
11041119
<groupId>org.apache.maven.plugins</groupId>
11051120
<artifactId>maven-gpg-plugin</artifactId>

0 commit comments

Comments
 (0)