Skip to content

Commit e238ef9

Browse files
authored
Merge pull request #1053 from Prafulrakhade/MOSIP-41674-migration-changes
[MOSIP-41674] central sonatype migration changes
2 parents 941dcf9 + 20f7ce6 commit e238ef9

File tree

10 files changed

+233
-156
lines changed

10 files changed

+233
-156
lines changed

.github/workflows/push-trigger.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
secrets:
4343
OSSRH_USER: ${{ secrets.OSSRH_USER }}
4444
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
45-
OSSRH_URL: ${{ secrets.OSSRH_SNAPSHOT_URL }}
45+
OSSRH_URL: ${{ secrets.OSSRH_CENTRAL_URL }}
4646
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
4747
GPG_SECRET: ${{ secrets.GPG_SECRET }}
4848
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
@@ -104,7 +104,7 @@ jobs:
104104
secrets:
105105
OSSRH_USER: ${{ secrets.OSSRH_USER }}
106106
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
107-
OSSRH_URL: ${{ secrets.OSSRH_SNAPSHOT_URL }}
107+
OSSRH_URL: ${{ secrets.OSSRH_CENTRAL_URL }}
108108
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
109109
GPG_SECRET: ${{ secrets.GPG_SECRET }}
110110
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
@@ -212,7 +212,7 @@ jobs:
212212
secrets:
213213
OSSRH_USER: ${{ secrets.OSSRH_USER }}
214214
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
215-
OSSRH_URL: ${{ secrets.OSSRH_SNAPSHOT_URL }}
215+
OSSRH_URL: ${{ secrets.OSSRH_CENTRAL_URL }}
216216
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
217217
GPG_SECRET: ${{ secrets.GPG_SECRET }}
218218
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
@@ -238,7 +238,7 @@ jobs:
238238
secrets:
239239
OSSRH_USER: ${{ secrets.OSSRH_USER }}
240240
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
241-
OSSRH_URL: ${{ secrets.OSSRH_SNAPSHOT_URL }}
241+
OSSRH_URL: ${{ secrets.OSSRH_CENTRAL_URL }}
242242
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
243243
GPG_SECRET: ${{ secrets.GPG_SECRET }}
244-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
244+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

cache-provider-hazelcast/pom.xml

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,27 +51,28 @@
5151
<git-commit-id-plugin.version>3.0.1</git-commit-id-plugin.version>
5252
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
5353
<maven-deploy-plugin.version>2.8.1</maven-deploy-plugin.version>
54-
<nexus-staging-maven-plugin.version>1.6.7</nexus-staging-maven-plugin.version>
55-
54+
<central.publishing.maven.plugin.version>0.7.0</central.publishing.maven.plugin.version>
55+
<kerne.bom.version>1.2.1-SNAPSHOT</kerne.bom.version>
5656
<hazelcast.version>3.12.12</hazelcast.version>
5757
</properties>
5858

5959
<distributionManagement>
6060
<snapshotRepository>
6161
<id>ossrh</id>
62-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
62+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
6363
</snapshotRepository>
6464
<repository>
6565
<id>ossrh</id>
66-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
66+
<url>https://central.sonatype.com/api/v1/publisher</url>
6767
</repository>
6868
</distributionManagement>
69+
6970
<dependencyManagement>
7071
<dependencies>
7172
<dependency>
7273
<groupId>io.mosip.kernel</groupId>
7374
<artifactId>kernel-bom</artifactId>
74-
<version>1.2.1-SNAPSHOT</version>
75+
<version>${kerne.bom.version}</version>
7576
<type>pom</type>
7677
<scope>import</scope>
7778
</dependency>
@@ -206,23 +207,13 @@
206207
</executions>
207208
</plugin>
208209
<plugin>
209-
<groupId>org.sonatype.plugins</groupId>
210-
<artifactId>nexus-staging-maven-plugin</artifactId>
211-
<version>${nexus-staging-maven-plugin.version}</version>
210+
<groupId>org.sonatype.central</groupId>
211+
<artifactId>central-publishing-maven-plugin</artifactId>
212+
<version>${central.publishing.maven.plugin.version}</version>
212213
<extensions>true</extensions>
213-
<executions>
214-
<execution>
215-
<id>default-deploy</id>
216-
<phase>deploy</phase>
217-
<goals>
218-
<goal>deploy</goal>
219-
</goals>
220-
</execution>
221-
</executions>
222214
<configuration>
223-
<serverId>ossrh</serverId>
224-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
225-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
215+
<publishingServerId>ossrh</publishingServerId>
216+
<autoPublish>false</autoPublish>
226217
</configuration>
227218
</plugin>
228219
<plugin>

cache-provider-redis/pom.xml

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,18 @@
4747
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
4848
<jedis.version>2.9.0</jedis.version>
4949
<maven-deploy-plugin.version>2.8.1</maven-deploy-plugin.version>
50-
<nexus-staging-maven-plugin.version>1.6.7</nexus-staging-maven-plugin.version>
50+
<central.publishing.maven.plugin.version>0.7.0</central.publishing.maven.plugin.version>
51+
<kerne.bom.version>1.2.1-SNAPSHOT</kerne.bom.version>
5152
</properties>
5253

5354
<distributionManagement>
5455
<snapshotRepository>
5556
<id>ossrh</id>
56-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
57+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
5758
</snapshotRepository>
5859
<repository>
5960
<id>ossrh</id>
60-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
61+
<url>https://central.sonatype.com/api/v1/publisher</url>
6162
</repository>
6263
</distributionManagement>
6364

@@ -66,7 +67,7 @@
6667
<dependency>
6768
<groupId>io.mosip.kernel</groupId>
6869
<artifactId>kernel-bom</artifactId>
69-
<version>1.2.1-SNAPSHOT</version>
70+
<version>${kerne.bom.version}</version>
7071
<type>pom</type>
7172
<scope>import</scope>
7273
</dependency>
@@ -207,23 +208,13 @@
207208
</executions>
208209
</plugin>
209210
<plugin>
210-
<groupId>org.sonatype.plugins</groupId>
211-
<artifactId>nexus-staging-maven-plugin</artifactId>
212-
<version>${nexus-staging-maven-plugin.version}</version>
211+
<groupId>org.sonatype.central</groupId>
212+
<artifactId>central-publishing-maven-plugin</artifactId>
213+
<version>${central.publishing.maven.plugin.version}</version>
213214
<extensions>true</extensions>
214-
<executions>
215-
<execution>
216-
<id>default-deploy</id>
217-
<phase>deploy</phase>
218-
<goals>
219-
<goal>deploy</goal>
220-
</goals>
221-
</execution>
222-
</executions>
223215
<configuration>
224-
<serverId>ossrh</serverId>
225-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
226-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
216+
<publishingServerId>ossrh</publishingServerId>
217+
<autoPublish>false</autoPublish>
227218
</configuration>
228219
</plugin>
229220
<plugin>

kernel/kernel-ref-idobjectvalidator/pom.xml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313

1414
<properties>
1515
<kernel-logger-logback.version>1.2.1-SNAPSHOT</kernel-logger-logback.version>
16+
<kerne.bom.version>1.2.1-SNAPSHOT</kerne.bom.version>
1617
</properties>
1718
<dependencyManagement>
1819
<dependencies>
1920
<dependency>
2021
<groupId>io.mosip.kernel</groupId>
2122
<artifactId>kernel-bom</artifactId>
22-
<version>1.2.1-SNAPSHOT</version>
23+
<version>${kerne.bom.version}</version>
2324
<type>pom</type>
2425
<scope>import</scope>
2526
</dependency>
@@ -86,14 +87,26 @@
8687
<artifactId>spring-cloud-starter-bootstrap</artifactId>
8788
</dependency>
8889
</dependencies>
89-
90+
<distributionManagement>
91+
<snapshotRepository>
92+
<id>ossrh</id>
93+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
94+
</snapshotRepository>
95+
<repository>
96+
<id>ossrh</id>
97+
<url>https://central.sonatype.com/api/v1/publisher</url>
98+
</repository>
99+
</distributionManagement>
90100
<build>
91101
<plugins>
92102
<plugin>
93-
<groupId>org.springframework.boot</groupId>
94-
<artifactId>spring-boot-maven-plugin</artifactId>
103+
<groupId>org.sonatype.central</groupId>
104+
<artifactId>central-publishing-maven-plugin</artifactId>
105+
<version>${central.publishing.maven.plugin.version}</version>
106+
<extensions>true</extensions>
95107
<configuration>
96-
<layout>ZIP</layout>
108+
<publishingServerId>ossrh</publishingServerId>
109+
<autoPublish>false</autoPublish>
97110
</configuration>
98111
</plugin>
99112
<plugin>

kernel/kernel-smsserviceprovider-msg91/pom.xml

Lines changed: 21 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<maven.deploy.plugin.version>2.8.1</maven.deploy.plugin.version>
2020
<maven.source.plugin.version>2.2.1</maven.source.plugin.version>
2121
<maven.gpg.plugin.version>1.5</maven.gpg.plugin.version>
22-
<nexus.staging.plugin.version>1.6.7</nexus.staging.plugin.version>
22+
<central.publishing.maven.plugin.version>0.7.0</central.publishing.maven.plugin.version>
2323
<git.commit.plugin.version>3.0.1</git.commit.plugin.version>
2424
<kernel.core.version>1.2.1-SNAPSHOT</kernel.core.version>
2525
<kernel.auth.adaptor.version>1.2.1-SNAPSHOT</kernel.auth.adaptor.version>
@@ -42,21 +42,21 @@
4242
<artifactId>junit-vintage-engine</artifactId>
4343
<version>${junit.vintage.version}</version>
4444
</dependency>
45-
4645
</dependencies>
47-
48-
<distributionManagement>
49-
<snapshotRepository>
50-
<id>ossrh</id>
51-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
52-
</snapshotRepository>
53-
<repository>
54-
<id>ossrh</id>
55-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
56-
</repository>
57-
</distributionManagement>
46+
47+
<distributionManagement>
48+
<snapshotRepository>
49+
<id>ossrh</id>
50+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
51+
</snapshotRepository>
52+
<repository>
53+
<id>ossrh</id>
54+
<url>https://central.sonatype.com/api/v1/publisher</url>
55+
</repository>
56+
</distributionManagement>
57+
5858
<build>
59-
<resources>
59+
<resources>
6060
<resource>
6161
<directory>src/main/resources</directory>
6262
<excludes>
@@ -78,27 +78,16 @@
7878
</execution>
7979
</executions>
8080
</plugin>
81-
<plugin>
82-
<groupId>org.sonatype.plugins</groupId>
83-
<artifactId>nexus-staging-maven-plugin</artifactId>
84-
<version>${nexus.staging.plugin.version}</version>
81+
<plugin>
82+
<groupId>org.sonatype.central</groupId>
83+
<artifactId>central-publishing-maven-plugin</artifactId>
84+
<version>${central.publishing.maven.plugin.version}</version>
8585
<extensions>true</extensions>
86-
<executions>
87-
<execution>
88-
<id>default-deploy</id>
89-
<phase>deploy</phase>
90-
<goals>
91-
<goal>deploy</goal>
92-
</goals>
93-
</execution>
94-
</executions>
9586
<configuration>
96-
<serverId>ossrh</serverId>
97-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
98-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
87+
<publishingServerId>ossrh</publishingServerId>
88+
<autoPublish>false</autoPublish>
9989
</configuration>
100-
</plugin>
101-
90+
</plugin>
10291
<plugin>
10392
<groupId>org.apache.maven.plugins</groupId>
10493
<artifactId>maven-source-plugin</artifactId>

kernel/kernel-virusscanner-clamav/pom.xml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>io.mosip.kernel</groupId>
66
<parent>
7-
<groupId>io.mosip.kernel</groupId>
8-
<artifactId>kernel-ref-parent</artifactId>
9-
<version>1.2.1-SNAPSHOT</version>
10-
</parent>
7+
<groupId>io.mosip.kernel</groupId>
8+
<artifactId>kernel-ref-parent</artifactId>
9+
<version>1.2.1-SNAPSHOT</version>
10+
</parent>
1111

1212
<artifactId>kernel-virusscanner-clamav</artifactId>
1313
<version>1.2.1-SNAPSHOT</version>
14+
<name>kernel-virusscanner-clamav</name>
1415
<properties>
1516
<maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version>
1617
<clamav.client.version>1.0.4</clamav.client.version>
18+
<central.publishing.maven.plugin.version>0.7.0</central.publishing.maven.plugin.version>
1719
</properties>
1820

1921
<dependencies>
@@ -40,6 +42,16 @@
4042
<version>${junit.vintage.version}</version>
4143
</dependency>
4244
</dependencies>
45+
<distributionManagement>
46+
<snapshotRepository>
47+
<id>ossrh</id>
48+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
49+
</snapshotRepository>
50+
<repository>
51+
<id>ossrh</id>
52+
<url>https://central.sonatype.com/api/v1/publisher</url>
53+
</repository>
54+
</distributionManagement>
4355

4456
<build>
4557
<plugins>
@@ -65,26 +77,15 @@
6577
</executions>
6678
</plugin>
6779
<plugin>
68-
<groupId>org.sonatype.plugins</groupId>
69-
<artifactId>nexus-staging-maven-plugin</artifactId>
70-
<version>${nexus.staging.plugin.version}</version>
80+
<groupId>org.sonatype.central</groupId>
81+
<artifactId>central-publishing-maven-plugin</artifactId>
82+
<version>${central.publishing.maven.plugin.version}</version>
7183
<extensions>true</extensions>
72-
<executions>
73-
<execution>
74-
<id>default-deploy</id>
75-
<phase>deploy</phase>
76-
<goals>
77-
<goal>deploy</goal>
78-
</goals>
79-
</execution>
80-
</executions>
8184
<configuration>
82-
<serverId>ossrh</serverId>
83-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
84-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
85+
<publishingServerId>ossrh</publishingServerId>
86+
<autoPublish>false</autoPublish>
8587
</configuration>
8688
</plugin>
87-
8889
<plugin>
8990
<groupId>org.apache.maven.plugins</groupId>
9091
<artifactId>maven-source-plugin</artifactId>

0 commit comments

Comments
 (0)