Skip to content

Commit 9111508

Browse files
[MOSIP-42083] Updated the 1.2.0.2-SNAPSHOT and maven central. (#97)
Signed-off-by: Ashok Kumar Sharma <ashok@mosip.io>
1 parent 789c422 commit 9111508

2 files changed

Lines changed: 31 additions & 19 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.RELEASE_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: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<artifactId>biosdk-client</artifactId>
1313
<groupId>io.mosip.biosdk</groupId>
14-
<version>1.2.0.1</version>
14+
<version>1.2.0.2-SNAPSHOT</version>
1515
<name>biosdk-client</name>
1616

1717
<description>Sample implementation of biometrics SDK client</description>
@@ -33,14 +33,35 @@
3333
</developer>
3434
</developers>
3535

36+
<repositories>
37+
<repository>
38+
<id>ossrh</id>
39+
<name>MavenCentralRepository</name>
40+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
41+
<layout>default</layout>
42+
<snapshots>
43+
<enabled>true</enabled>
44+
</snapshots>
45+
</repository>
46+
<repository>
47+
<id>central</id>
48+
<name>MavenCentral</name>
49+
<layout>default</layout>
50+
<url>https://repo1.maven.org/maven2</url>
51+
<snapshots>
52+
<enabled>false</enabled>
53+
</snapshots>
54+
</repository>
55+
</repositories>
56+
3657
<distributionManagement>
3758
<snapshotRepository>
3859
<id>ossrh</id>
39-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
60+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
4061
</snapshotRepository>
4162
<repository>
4263
<id>ossrh</id>
43-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
64+
<url>https://central.sonatype.com/api/v1/publisher</url>
4465
</repository>
4566
</distributionManagement>
4667

@@ -55,6 +76,7 @@
5576
<maven.surefire.plugin.version>2.22.0</maven.surefire.plugin.version>
5677
<maven.jacoco.plugin.version>0.8.5</maven.jacoco.plugin.version>
5778
<maven.sonar.plugin.version>3.7.0.1746</maven.sonar.plugin.version>
79+
<central.publishing.maven.plugin.version>0.7.0</central.publishing.maven.plugin.version>
5880
<jackson.version>2.19.0</jackson.version>
5981
<!-- Lombok -->
6082
<lombok.version>1.18.8</lombok.version>
@@ -259,23 +281,13 @@
259281
</executions>
260282
</plugin>
261283
<plugin>
262-
<groupId>org.sonatype.plugins</groupId>
263-
<artifactId>nexus-staging-maven-plugin</artifactId>
264-
<version>1.6.7</version>
284+
<groupId>org.sonatype.central</groupId>
285+
<artifactId>central-publishing-maven-plugin</artifactId>
286+
<version>${central.publishing.maven.plugin.version}</version>
265287
<extensions>true</extensions>
266-
<executions>
267-
<execution>
268-
<id>default-deploy</id>
269-
<phase>deploy</phase>
270-
<goals>
271-
<goal>deploy</goal>
272-
</goals>
273-
</execution>
274-
</executions>
275288
<configuration>
276-
<serverId>ossrh</serverId>
277-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
278-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
289+
<publishingServerId>ossrh</publishingServerId>
290+
<autoPublish>false</autoPublish>
279291
</configuration>
280292
</plugin>
281293
<plugin>

0 commit comments

Comments
 (0)