Skip to content

Commit a869b85

Browse files
[MOSIP-42464] [MOSIP-41674] central sonatype migration changes (#120)
Signed-off-by: Prafulrakhade <prafulrakhade02@gmail.com>
1 parent 3924e6e commit a869b85

2 files changed

Lines changed: 12 additions & 22 deletions

File tree

.github/workflows/push-trigger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
with:
4242
SERVICE_LOCATION: ./biosdk-client
4343
secrets:
44-
OSSRH_URL: ${{ secrets.OSSRH_SNAPSHOT_URL }}
44+
OSSRH_URL: ${{ secrets.OSSRH_CENTRAL_URL }}
4545
OSSRH_USER: ${{ secrets.OSSRH_USER }}
4646
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
4747
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}

biosdk-client/pom.xml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<maven.war.plugin.version>3.1.0</maven.war.plugin.version>
3333
<maven.assembly.plugin.version>3.3.0</maven.assembly.plugin.version>
3434
<maven.surefire.plugin.version>3.1.2</maven.surefire.plugin.version>
35-
<nexus.staging.maven.plugin.version>1.6.14</nexus.staging.maven.plugin.version>
35+
<central.publishing.maven.plugin.version>0.7.0</central.publishing.maven.plugin.version>
3636
<maven.sonar.plugin.version>3.7.0.1746</maven.sonar.plugin.version>
3737
<!-- git -->
3838
<git.commit.id.plugin.version>3.0.1</git.commit.id.plugin.version>
@@ -289,23 +289,13 @@
289289
</executions>
290290
</plugin>
291291
<plugin>
292-
<groupId>org.sonatype.plugins</groupId>
293-
<artifactId>nexus-staging-maven-plugin</artifactId>
294-
<version>${nexus.staging.maven.plugin.version}</version>
292+
<groupId>org.sonatype.central</groupId>
293+
<artifactId>central-publishing-maven-plugin</artifactId>
294+
<version>${central.publishing.maven.plugin.version}</version>
295295
<extensions>true</extensions>
296-
<executions>
297-
<execution>
298-
<id>default-deploy</id>
299-
<phase>deploy</phase>
300-
<goals>
301-
<goal>deploy</goal>
302-
</goals>
303-
</execution>
304-
</executions>
305296
<configuration>
306-
<serverId>ossrh</serverId>
307-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
308-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
297+
<publishingServerId>ossrh</publishingServerId>
298+
<autoPublish>false</autoPublish>
309299
</configuration>
310300
</plugin>
311301
<plugin>
@@ -411,9 +401,9 @@
411401

412402
<repositories>
413403
<repository>
414-
<id>ossrh</id>
415-
<name>CentralRepository</name>
416-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
404+
<id>ossrh-central</id>
405+
<name>MavenCentralRepository</name>
406+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
417407
<layout>default</layout>
418408
<snapshots>
419409
<enabled>true</enabled>
@@ -433,11 +423,11 @@
433423
<distributionManagement>
434424
<snapshotRepository>
435425
<id>ossrh</id>
436-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
426+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
437427
</snapshotRepository>
438428
<repository>
439429
<id>ossrh</id>
440-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
430+
<url>https://central.sonatype.com/api/v1/publisher</url>
441431
</repository>
442432
</distributionManagement>
443433

0 commit comments

Comments
 (0)