Skip to content

Commit 36c5db5

Browse files
committed
central-publishing
1 parent 9eecef9 commit 36c5db5

File tree

1 file changed

+23
-16
lines changed

1 file changed

+23
-16
lines changed

pom.xml

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525

2626
<!-- quality -->
2727
<dependencycheck.version>10.0.4</dependencycheck.version>
28+
29+
<!-- plugins -->
30+
<central-publishing.version>0.8.0</central-publishing.version>
2831
</properties>
2932

3033
<build>
@@ -515,6 +518,15 @@
515518
</execution>
516519
</executions>
517520
</plugin>
521+
<plugin>
522+
<groupId>org.sonatype.central</groupId>
523+
<artifactId>central-publishing-maven-plugin</artifactId>
524+
<version>${central-publishing.version}</version>
525+
<extensions>true</extensions>
526+
<configuration>
527+
<publishingServerId>central</publishingServerId>
528+
</configuration>
529+
</plugin>
518530
<plugin>
519531
<groupId>org.apache.maven.plugins</groupId>
520532
<artifactId>maven-eclipse-plugin</artifactId>
@@ -561,6 +573,7 @@
561573
<id>HtmlUnitTeam</id>
562574
</developer>
563575
</developers>
576+
564577
<dependencies>
565578
<dependency>
566579
<groupId>org.junit.jupiter</groupId>
@@ -575,27 +588,21 @@
575588
<scope>test</scope>
576589
</dependency>
577590
</dependencies>
578-
<distributionManagement>
579-
<snapshotRepository>
580-
<id>s01-sonatype-nexus-snapshots</id>
581-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
582-
</snapshotRepository>
583-
<repository>
584-
<id>s01-sonatype-nexus-staging</id>
585-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url>
586-
</repository>
587-
</distributionManagement>
591+
592+
593+
<!-- for snapshots of our dependencies -->
588594
<repositories>
589595
<repository>
590-
<snapshots>
591-
<enabled>true</enabled>
592-
<updatePolicy>always</updatePolicy>
593-
</snapshots>
596+
<name>Central Portal Snapshots</name>
597+
<id>central-portal-snapshots</id>
598+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
594599
<releases>
595600
<enabled>false</enabled>
596601
</releases>
597-
<id>OSS Sonatype snapshots</id>
598-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
602+
<snapshots>
603+
<enabled>true</enabled>
604+
</snapshots>
599605
</repository>
600606
</repositories>
607+
601608
</project>

0 commit comments

Comments
 (0)