Skip to content

Commit 8d72e67

Browse files
committed
fixing artifact publishing
1 parent 7020be3 commit 8d72e67

File tree

3 files changed

+11
-21
lines changed

3 files changed

+11
-21
lines changed

.github/workflows/maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: mvn clean verify -U
2727

2828
deploy:
29-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/3.0.x'}}
29+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/3.x'}}
3030
needs: build
3131
runs-on: ubuntu-latest
3232

.github/workflows/maven_settings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
33
<servers>
44
<server>
5-
<id>oss-sonatype-snapshots</id>
5+
<id>sonatype-central</id>
66
<username>${env.MAVEN_USERNAME}</username>
77
<password>${env.MAVEN_PASSWORD}</password>
88
</server>

pom.xml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<release.plugin.version>3.1.1</release.plugin.version>
6363
<surefire.plugin.version>3.5.2</surefire.plugin.version>
6464
<failsafe.plugin.version>3.5.2</failsafe.plugin.version>
65-
<nexus.staging.plugin.version>1.6.13</nexus.staging.plugin.version>
65+
<central.publishing.plugin.version>0.7.0</central.publishing.plugin.version>
6666
<gpg.plugin.version>3.2.7</gpg.plugin.version>
6767
</properties>
6868

@@ -75,15 +75,9 @@
7575

7676
<distributionManagement>
7777
<repository>
78-
<uniqueVersion>false</uniqueVersion>
79-
<id>oss-sonatype-releases</id>
80-
<name>Deployment Repository</name>
81-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
78+
<id>sonatype-central</id>
79+
<name>Sonatype Central Portal Repository</name>
8280
</repository>
83-
<snapshotRepository>
84-
<id>oss-sonatype-snapshots</id>
85-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
86-
</snapshotRepository>
8781
</distributionManagement>
8882

8983
<!-- Temporarily need bootique 3.0-SNAPSHOT access -->
@@ -236,9 +230,9 @@
236230
</executions>
237231
</plugin>
238232
<plugin>
239-
<groupId>org.sonatype.plugins</groupId>
240-
<artifactId>nexus-staging-maven-plugin</artifactId>
241-
<version>${nexus.staging.plugin.version}</version>
233+
<groupId>org.sonatype.central</groupId>
234+
<artifactId>central-publishing-maven-plugin</artifactId>
235+
<version>${central.publishing.plugin.version}</version>
242236
</plugin>
243237
</plugins>
244238
</pluginManagement>
@@ -248,15 +242,11 @@
248242
<artifactId>maven-failsafe-plugin</artifactId>
249243
</plugin>
250244
<plugin>
251-
<groupId>org.sonatype.plugins</groupId>
252-
<artifactId>nexus-staging-maven-plugin</artifactId>
245+
<groupId>org.sonatype.central</groupId>
246+
<artifactId>central-publishing-maven-plugin</artifactId>
253247
<extensions>true</extensions>
254248
<configuration>
255-
<serverId>oss-sonatype-releases</serverId>
256-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
257-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
258-
<!-- Default timeout is 5 minute which may not be enough for the all validation rules -->
259-
<stagingProgressTimeoutMinutes>20</stagingProgressTimeoutMinutes>
249+
<publishingServerId>sonatype-central</publishingServerId>
260250
</configuration>
261251
</plugin>
262252
</plugins>

0 commit comments

Comments
 (0)