Skip to content

Commit c4cf396

Browse files
committed
#78 Migrate to central-publishing-maven-plugin.
1 parent 6842a69 commit c4cf396

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

pom.xml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,14 @@ SPDX-License-Identifier: LGPL-2.0-or-later
140140
</plugin>
141141

142142
<plugin>
143-
<groupId>org.sonatype.plugins</groupId>
144-
<artifactId>nexus-staging-maven-plugin</artifactId>
145-
<version>1.6.13</version>
143+
<groupId>org.sonatype.central</groupId>
144+
<artifactId>central-publishing-maven-plugin</artifactId>
145+
<version>0.8.0</version>
146146
<extensions>true</extensions>
147147
<configuration>
148-
<serverId>ossrh</serverId>
149-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
150-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
148+
<publishingServerId>central</publishingServerId>
149+
<autoPublish>true</autoPublish>
150+
<waitUntil>published</waitUntil>
151151
</configuration>
152152
</plugin>
153153

@@ -208,17 +208,6 @@ SPDX-License-Identifier: LGPL-2.0-or-later
208208
</plugins>
209209
</build>
210210

211-
<distributionManagement>
212-
<snapshotRepository>
213-
<id>ossrh</id>
214-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
215-
</snapshotRepository>
216-
<repository>
217-
<id>ossrh</id>
218-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
219-
</repository>
220-
</distributionManagement>
221-
222211
<scm>
223212
<connection>scm:git:git://github.com/dexecutor/dependent-tasks-executor.git</connection>
224213
<developerConnection>scm:git:[email protected]:dexecutor/dexecutor.git</developerConnection>

release-perform

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ if [[ ! -f release.properties ]]; then
1818
exit 1
1919
fi
2020
mvn release:perform
21+
mvn deploy
2122
echo
2223
echo "Don't forgot push the changes and tags for this release."
2324
echo "After a successful release, execute e.g. 'git push' and 'git push --tags'."

0 commit comments

Comments
 (0)