Skip to content

Commit a9bbcdf

Browse files
committed
Updated POM and Settings
1 parent 94508c1 commit a9bbcdf

2 files changed

Lines changed: 23 additions & 7 deletions

File tree

pom.xml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<artifactId>unit-api</artifactId>
77
<name>Units of Measurement API</name>
88
<packaging>bundle</packaging>
9+
<version>2.2.1-SNAPSHOT</version>
910
<url>https://unitsofmeasurement.github.io/unit-api/</url>
1011
<description>Units of Measurement Standard - This JSR specifies Java
1112
packages for modeling and working with measurement values, quantities
@@ -25,7 +26,7 @@
2526
<parent>
2627
<groupId>tech.uom</groupId>
2728
<artifactId>uom-parent</artifactId>
28-
<version>2.2.3-SNAPSHOT</version>
29+
<version>2.2.4-SNAPSHOT</version>
2930
</parent>
3031

3132
<!-- Issue managements and mailing lists. -->
@@ -74,6 +75,8 @@
7475
<!-- Plugins -->
7576
<github.maven.version>0.12</github.maven.version>
7677
<github.global.server>github</github.global.server>
78+
<sonatype.central.snapshotsUrl>https://central.sonatype.com/repository/maven-snapshots/</sonatype.central.snapshotsUrl>
79+
7780
<!--Exclude the files here -->
7881
<sonar.exclusions>
7982
src/main/java/javax/measure/BinaryPrefix.java,src/main/java/javax/measure/MetricPrefix.java</sonar.exclusions>
@@ -671,6 +674,18 @@
671674
<groupId>org.apache.maven.plugins</groupId>
672675
<artifactId>maven-site-plugin</artifactId>
673676
</plugin>
677+
678+
<plugin>
679+
<groupId>org.sonatype.central</groupId>
680+
<artifactId>central-publishing-maven-plugin</artifactId>
681+
<extensions>true</extensions>
682+
<configuration>
683+
<publishingServerId>central</publishingServerId>
684+
<centralSnapshotsUrl>${sonatype.central.snapshotsUrl}</centralSnapshotsUrl>
685+
<autoPublish>true</autoPublish>
686+
<waitUntil>published</waitUntil>
687+
</configuration>
688+
</plugin>
674689
</plugins>
675690
</build>
676691

@@ -744,6 +759,7 @@
744759

745760
<!-- Deployment to public servers -->
746761
<distributionManagement>
762+
<!--
747763
<repository>
748764
<id>ossrh</id>
749765
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
@@ -752,6 +768,7 @@
752768
<id>ossrh</id>
753769
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
754770
</snapshotRepository>
771+
-->
755772
<site>
756773
<id>JSR-385</id>
757774
<name>JSR-385 Maven reports</name>
@@ -787,10 +804,10 @@
787804
<snapshots>
788805
<enabled>true</enabled>
789806
</snapshots>
790-
<id>ossrh-snapshot</id>
791-
<name>OSSRH Snapshots</name>
792-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
793-
</repository>
807+
<id>central-snapshot</id>
808+
<name>Central Snapshots</name>
809+
<url>${sonatype.central.snapshotsUrl}</url>
810+
</repository>
794811
</repositories>
795812

796813
<profiles>
@@ -1078,5 +1095,4 @@
10781095
</properties>
10791096
</profile>
10801097
</profiles>
1081-
<version>2.2.1-SNAPSHOT</version>
10821098
</project>

settings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
44
<servers>
55
<server>
6-
<id>ossrh</id>
6+
<id>central</id>
77
<username>${env.CI_DEPLOY_USERNAME}</username>
88
<password>${env.CI_DEPLOY_PASSWORD}</password>
99
</server>

0 commit comments

Comments
 (0)