Skip to content

Commit f5de9ac

Browse files
wt0530githubgxll
authored andcommitted
[fix][sdk] Change publish of OSSRH to Central
1 parent 0c47e28 commit f5de9ac

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

java/pom.xml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,16 +218,30 @@
218218
</execution>
219219
</executions>
220220
</plugin>
221+
<plugin>
222+
<groupId>org.sonatype.central</groupId>
223+
<artifactId>central-publishing-maven-plugin</artifactId>
224+
<version>0.8.0</version>
225+
<extensions>true</extensions>
226+
<configuration>
227+
<publishingServerId>central</publishingServerId>
228+
<autoPublish>true</autoPublish>
229+
<waitUntil>published</waitUntil>
230+
</configuration>
231+
</plugin>
221232
</plugins>
222233
</build>
223234
<distributionManagement>
224-
<snapshotRepository>
225-
<id>ossrh</id>
226-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
227-
</snapshotRepository>
228235
<repository>
229-
<id>ossrh</id>
230-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
236+
<name>Central Portal Snapshots</name>
237+
<id>central-portal-snapshots</id>
238+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
239+
<releases>
240+
<enabled>false</enabled>
241+
</releases>
242+
<snapshots>
243+
<enabled>true</enabled>
244+
</snapshots>
231245
</repository>
232246
</distributionManagement>
233247
</project>

0 commit comments

Comments
 (0)