Skip to content

Commit c9797ca

Browse files
author
Andy Kruth
committed
fix: STREAMP-15651: removing old nexus plugin
1 parent fcf0fb2 commit c9797ca

File tree

3 files changed

+2
-40
lines changed

3 files changed

+2
-40
lines changed

.github/workflows/release-patch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
distribution: adopt
2323
architecture: x64
2424
# this also creates settings.xml with the following server
25-
server-id: sonatype-nexus-staging # Value of the distributionManagement/repository/id field of the pom.xml
25+
server-id: central # Value of the distributionManagement/repository/id field of the pom.xml
2626
server-username: SONATYPE_USERNAME # env variable for username in deploy
2727
server-password: SONATYPE_PASSWORD # env variable for token in deploy
2828
# only signed artifacts will be released to maven central. this sets up things for the maven-gpg-plugin

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
distribution: adopt
3333
architecture: x64
3434
# this also creates settings.xml with the following server
35-
server-id: sonatype-nexus-staging # Value of the distributionManagement/repository/id field of the pom.xml
35+
server-id: central # Value of the distributionManagement/repository/id field of the pom.xml
3636
server-username: SONATYPE_USERNAME # env variable for username in deploy
3737
server-password: SONATYPE_PASSWORD # env variable for token in deploy
3838
# only signed artifacts will be released to maven central. this sets up things for the maven-gpg-plugin

pom.xml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -330,44 +330,6 @@
330330
<showWarnings>true</showWarnings>
331331
</configuration>
332332
</plugin>
333-
<!--
334-
Override parent nexus plugin to add dependencies that will work with Java 17.
335-
https://issues.sonatype.org/browse/OSSRH-66257
336-
https://stackoverflow.com/questions/70153962/nexus-staging-maven-plugin-maven-deploy-failed-an-api-incompatibility-was-enco
337-
-->
338-
<plugin>
339-
<groupId>org.sonatype.plugins</groupId>
340-
<artifactId>nexus-staging-maven-plugin</artifactId>
341-
<version>${nexus.staging.maven.plugin.version}</version>
342-
<extensions>true</extensions>
343-
<configuration>
344-
<serverId>sonatype-nexus-staging</serverId>
345-
<nexusUrl>https://ossrh-staging-api.central.sonatype.com/</nexusUrl>
346-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
347-
</configuration>
348-
<dependencies>
349-
<dependency>
350-
<groupId>com.thoughtworks.xstream</groupId>
351-
<artifactId>xstream</artifactId>
352-
<version>1.4.15</version> <!-- apparently this needs to be exactly this version -->
353-
</dependency>
354-
</dependencies>
355-
</plugin>
356-
<!--
357-
Override parent publishing plugin so that we can specify the correct serverId.
358-
https://github.com/ExpediaGroup/eg-oss-parent/blob/main/pom.xml#L457-L467
359-
-->
360-
<plugin>
361-
<groupId>org.sonatype.central</groupId>
362-
<artifactId>central-publishing-maven-plugin</artifactId>
363-
<version>0.8.0</version>
364-
<extensions>true</extensions>
365-
<configuration>
366-
<publishingServerId>sonatype-nexus-staging</publishingServerId>
367-
<autoPublish>true</autoPublish>
368-
<waitUntil>published</waitUntil>
369-
</configuration>
370-
</plugin>
371333
</plugins>
372334
</build>
373335

0 commit comments

Comments
 (0)