Skip to content

Commit 0e37d2f

Browse files
committed
Update build to use new central repository staging.
1 parent 05844f8 commit 0e37d2f

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

pom.xml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,25 @@
5050
<slf4jVersion>1.7.25</slf4jVersion>
5151
</properties>
5252

53+
<repositories>
54+
<repository>
55+
<id>maven_central</id>
56+
<name>Maven Central</name>
57+
<url>https://repo.maven.apache.org/maven2/</url>
58+
</repository>
59+
<repository>
60+
<id>central-portal-snapshots</id>
61+
<name>Central Portal Snapshots</name>
62+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
63+
<releases>
64+
<enabled>false</enabled>
65+
</releases>
66+
<snapshots>
67+
<enabled>true</enabled>
68+
</snapshots>
69+
</repository>
70+
</repositories>
71+
5372
<dependencies>
5473
<!-- Kaitai Struct Compiler runtime for Java -->
5574
<dependency>
@@ -89,6 +108,11 @@
89108
<build>
90109
<pluginManagement>
91110
<plugins>
111+
<plugin>
112+
<groupId>org.sonatype.central</groupId>
113+
<artifactId>central-publishing-maven-plugin</artifactId>
114+
<version>0.8.0</version>
115+
</plugin>
92116
<plugin>
93117
<groupId>org.apache.maven.plugins</groupId>
94118
<artifactId>maven-compiler-plugin</artifactId>
@@ -179,22 +203,20 @@
179203
<artifactId>versions-maven-plugin</artifactId>
180204
<version>2.7</version>
181205
</plugin>
182-
183-
<plugin>
184-
<groupId>org.sonatype.plugins</groupId>
185-
<artifactId>nexus-staging-maven-plugin</artifactId>
186-
<version>1.6.8</version>
187-
<extensions>true</extensions>
188-
<configuration>
189-
<serverId>ossrh</serverId>
190-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
191-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
192-
</configuration>
193-
</plugin>
194206
</plugins>
195207
</pluginManagement>
196208

197209
<plugins>
210+
<plugin>
211+
<groupId>org.sonatype.central</groupId>
212+
<artifactId>central-publishing-maven-plugin</artifactId>
213+
<extensions>true</extensions>
214+
<configuration>
215+
<publishingServerId>central</publishingServerId>
216+
<autoPublish>true</autoPublish>
217+
<waitUntil>published</waitUntil>
218+
</configuration>
219+
</plugin>
198220
<plugin>
199221
<groupId>name.valery1707.kaitai</groupId>
200222
<artifactId>kaitai-maven-plugin</artifactId>
@@ -318,17 +340,6 @@
318340
<artifactId>versions-maven-plugin</artifactId>
319341
</plugin>
320342

321-
<plugin>
322-
<groupId>org.sonatype.plugins</groupId>
323-
<artifactId>nexus-staging-maven-plugin</artifactId>
324-
<extensions>true</extensions>
325-
<configuration>
326-
<serverId>ossrh</serverId>
327-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
328-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
329-
</configuration>
330-
</plugin>
331-
332343
<plugin>
333344
<groupId>org.apache.maven.plugins</groupId>
334345
<artifactId>maven-source-plugin</artifactId>
@@ -415,15 +426,4 @@
415426
</plugin>
416427
</plugins>
417428
</reporting>
418-
419-
<distributionManagement>
420-
<snapshotRepository>
421-
<id>ossrh</id>
422-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
423-
</snapshotRepository>
424-
<repository>
425-
<id>ossrh</id>
426-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
427-
</repository>
428-
</distributionManagement>
429429
</project>

0 commit comments

Comments
 (0)