Skip to content

Commit 8494f2e

Browse files
committed
update build for publishing to maven central portal.
1 parent c2b5444 commit 8494f2e

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

java-http.iml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<orderEntry type="module-library" scope="TEST">
8484
<library>
8585
<CLASSES>
86-
<root url="jar://$MODULE_DIR$/.savant/cache/org/jcommander/jcommander/1.83/jcommander-1.83.jar!/" />
86+
<root url="jar://$MODULE_DIR$/.savant/cache/org/jcommander/jcommander/1.83.0/jcommander-1.83.0.jar!/" />
8787
</CLASSES>
8888
<JAVADOC />
8989
<SOURCES>

pom.xml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@
1111

1212
<distributionManagement>
1313
<snapshotRepository>
14-
<id>ossrh</id>
15-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
14+
<name>Central Portal Snapshots</name>
15+
<id>central-portal-snapshots</id>
16+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
17+
<releases>
18+
<enabled>true</enabled>
19+
</releases>
20+
<snapshots>
21+
<enabled>false</enabled>
22+
</snapshots>
1623
</snapshotRepository>
17-
<repository>
18-
<id>ossrh</id>
19-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
20-
</repository>
2124
</distributionManagement>
2225

2326
<developers>
@@ -166,14 +169,12 @@
166169
<build>
167170
<plugins>
168171
<plugin>
169-
<groupId>org.sonatype.plugins</groupId>
170-
<artifactId>nexus-staging-maven-plugin</artifactId>
171-
<version>1.7.0</version>
172+
<groupId>org.sonatype.central</groupId>
173+
<artifactId>central-publishing-maven-plugin</artifactId>
174+
<version>0.8.0</version>
172175
<extensions>true</extensions>
173176
<configuration>
174-
<serverId>ossrh</serverId>
175-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
176-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
177+
<publishingServerId>central</publishingServerId>
177178
</configuration>
178179
</plugin>
179180
<plugin>
@@ -198,4 +199,4 @@
198199
</build>
199200
</profile>
200201
</profiles>
201-
</project>
202+
</project>

0 commit comments

Comments
 (0)