Skip to content

Commit 1c1f243

Browse files
authored
Merge pull request #181 from Riskified/DEV-115160
DEV-115160 Updated OSSH server to maven central
2 parents 70f2ec6 + 836de8f commit 1c1f243

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

.circleci/maven-release-settings.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
22
<servers>
3-
<server>
3+
<!-- <server>
44
<id>ossrh</id>
55
<username>${env.SERVER_OSSRH_USERNAME}</username>
66
<password>${env.SERVER_OSSRH_PASSWORD}</password>
7+
</server> -->
8+
<server>
9+
<id>central</id>
10+
<username>${env.MAVEN_CENTRAL_USERNAME}</username>
11+
<password>${env.MAVEN_CENTRAL_PASSWORD}</password>
712
</server>
813
</servers>
914

riskified-sdk/pom.xml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,18 @@
1010
<url>https://www.riskified.com</url>
1111

1212
<distributionManagement>
13-
<snapshotRepository>
13+
<!-- <snapshotRepository>
1414
<id>ossrh</id>
1515
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
16+
</snapshotRepository> -->
17+
<snapshotRepository>
18+
<id>central</id>
19+
<url>https://central.sonatype.com/api/v1/publisher/deployments/</url>
1620
</snapshotRepository>
21+
<repository>
22+
<id>central</id>
23+
<url>https://central.sonatype.com/api/v1/publisher/deployments/</url>
24+
</repository>
1725
</distributionManagement>
1826

1927
<build>
@@ -28,7 +36,7 @@
2836
</configuration>
2937
</plugin>
3038

31-
<plugin>
39+
<!-- <plugin>
3240
<groupId>org.sonatype.plugins</groupId>
3341
<artifactId>nexus-staging-maven-plugin</artifactId>
3442
<version>1.6.3</version>
@@ -38,7 +46,16 @@
3846
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
3947
<autoReleaseAfterClose>true</autoReleaseAfterClose>
4048
</configuration>
41-
</plugin>
49+
</plugin> -->
50+
<plugin>
51+
<groupId>org.sonatype.central</groupId>
52+
<artifactId>central-publishing-maven-plugin</artifactId>
53+
<version>0.8.0</version>
54+
<extensions>true</extensions>
55+
<configuration>
56+
<publishingServerId>central</publishingServerId>
57+
</configuration>
58+
</plugin>
4259

4360
<plugin>
4461
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)