Skip to content

Commit 73d598c

Browse files
author
Pedro González Marcos
committed
build: replace deploy plugin
1 parent eef71c6 commit 73d598c

File tree

1 file changed

+11
-31
lines changed

1 file changed

+11
-31
lines changed

pom.xml

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,6 @@
3737
<url>https://github.com/Alex-GF/pricingplans-4j/tree/main</url>
3838
</scm>
3939

40-
<distributionManagement>
41-
<snapshotRepository>
42-
<id>ossrh</id>
43-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
44-
</snapshotRepository>
45-
<repository>
46-
<id>ossrh</id>
47-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
48-
</repository>
49-
</distributionManagement>
50-
5140
<properties>
5241
<jackson.version>2.14.2</jackson.version>
5342
<aspectj.version>1.9.7</aspectj.version>
@@ -177,8 +166,16 @@
177166
<build>
178167
<finalName>Pricing4Java</finalName>
179168
<plugins>
180-
181-
169+
<plugin>
170+
<groupId>org.sonatype.central</groupId>
171+
<artifactId>central-publishing-maven-plugin</artifactId>
172+
<version>0.8.0</version>
173+
<extensions>true</extensions>
174+
<configuration>
175+
<publishingServerId>central</publishingServerId>
176+
<autoPublish>true</autoPublish>
177+
</configuration>
178+
</plugin>
182179
<plugin>
183180
<groupId>org.apache.maven.plugins</groupId>
184181
<artifactId>maven-gpg-plugin</artifactId>
@@ -199,24 +196,7 @@
199196
</execution>
200197
</executions>
201198
</plugin>
202-
<plugin>
203-
<groupId>org.sonatype.plugins</groupId>
204-
<artifactId>nexus-staging-maven-plugin</artifactId>
205-
<version>1.6.7</version>
206-
<extensions>true</extensions>
207-
<configuration>
208-
<serverId>ossrh</serverId>
209-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
210-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
211-
</configuration>
212-
<dependencies>
213-
<dependency>
214-
<groupId>com.thoughtworks.xstream</groupId>
215-
<artifactId>xstream</artifactId>
216-
<version>1.4.15</version> <!-- apparently this needs to be exactly this version -->
217-
</dependency>
218-
</dependencies>
219-
</plugin>
199+
220200
<plugin>
221201
<artifactId>maven-surefire-plugin</artifactId>
222202
<version>3.5.2</version>

0 commit comments

Comments
 (0)