Skip to content

Commit 5c6d3fa

Browse files
M-ElsaeedMohammed Ehab
andauthored
Migrate to Maven Central Portal from OSSRH for RIC & Core Packages. RIC Version Bump to 2.8.4 (#565)
Migrate to Maven Central Portal Publishing instead of OSSRH for aws-lambda-java-core and aws-lambda-java-runtime-interface-client For Other Packages, they we will be following the same approach in aws-lambda-java-core. Only aws-lambda-java-runtime-interface-client is different since, per deployment, it has an uber-jar and platform-specific jars. --------- Co-authored-by: Mohammed Ehab <[email protected]>
1 parent 434185b commit 5c6d3fa

File tree

3 files changed

+48
-22
lines changed
  • aws-lambda-java-core
  • aws-lambda-java-runtime-interface-client

3 files changed

+48
-22
lines changed

aws-lambda-java-core/pom.xml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@
3636
<maven.compiler.target>1.8</maven.compiler.target>
3737
</properties>
3838

39-
<distributionManagement>
40-
<repository>
41-
<id>sonatype-nexus-staging</id>
42-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
43-
</repository>
44-
</distributionManagement>
45-
4639
<profiles>
4740
<profile>
4841
<id>dev</id>
@@ -115,14 +108,12 @@
115108
</executions>
116109
</plugin>
117110
<plugin>
118-
<groupId>org.sonatype.plugins</groupId>
119-
<artifactId>nexus-staging-maven-plugin</artifactId>
120-
<version>1.6.3</version>
111+
<groupId>org.sonatype.central</groupId>
112+
<artifactId>central-publishing-maven-plugin</artifactId>
113+
<version>0.8.0</version>
121114
<extensions>true</extensions>
122115
<configuration>
123-
<serverId>sonatype-nexus-staging</serverId>
124-
<nexusUrl>https://aws.oss.sonatype.org/</nexusUrl>
125-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
116+
<publishingServerId>central</publishingServerId>
126117
</configuration>
127118
</plugin>
128119
</plugins>

aws-lambda-java-runtime-interface-client/pom.xml

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.amazonaws</groupId>
66
<artifactId>aws-lambda-java-runtime-interface-client</artifactId>
7-
<version>2.7.1</version>
7+
<version>2.8.4</version>
88
<packaging>jar</packaging>
99

1010
<name>AWS Lambda Java Runtime Interface Client</name>
@@ -365,16 +365,52 @@
365365
</executions>
366366
</plugin>
367367
<plugin>
368-
<groupId>org.sonatype.plugins</groupId>
369-
<artifactId>nexus-staging-maven-plugin</artifactId>
370-
<version>1.6.3</version>
368+
<groupId>org.sonatype.central</groupId>
369+
<artifactId>central-publishing-maven-plugin</artifactId>
370+
<version>0.8.0</version>
371371
<extensions>true</extensions>
372372
<configuration>
373-
<serverId>sonatype-nexus-staging</serverId>
374-
<nexusUrl>https://aws.oss.sonatype.org/</nexusUrl>
375-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
373+
<publishingServerId>central</publishingServerId>
376374
</configuration>
377375
</plugin>
376+
<plugin>
377+
<groupId>org.codehaus.mojo</groupId>
378+
<artifactId>build-helper-maven-plugin</artifactId>
379+
<version>3.4.0</version>
380+
<executions>
381+
<execution>
382+
<id>attach-platform-artifacts</id>
383+
<phase>package</phase>
384+
<goals>
385+
<goal>attach-artifact</goal>
386+
</goals>
387+
<configuration>
388+
<artifacts>
389+
<artifact>
390+
<file>${project.build.directory}/${project.build.finalName}-linux-x86_64.jar</file>
391+
<type>jar</type>
392+
<classifier>linux-x86_64</classifier>
393+
</artifact>
394+
<artifact>
395+
<file>${project.build.directory}/${project.build.finalName}-linux-aarch_64.jar</file>
396+
<type>jar</type>
397+
<classifier>linux-aarch_64</classifier>
398+
</artifact>
399+
<artifact>
400+
<file>${project.build.directory}/${project.build.finalName}-linux_musl-x86_64.jar</file>
401+
<type>jar</type>
402+
<classifier>linux_musl-x86_64</classifier>
403+
</artifact>
404+
<artifact>
405+
<file>${project.build.directory}/${project.build.finalName}-linux_musl-aarch_64.jar</file>
406+
<type>jar</type>
407+
<classifier>linux_musl-aarch_64</classifier>
408+
</artifact>
409+
</artifacts>
410+
</configuration>
411+
</execution>
412+
</executions>
413+
</plugin>
378414
</plugins>
379415
</build>
380416
</profile>

aws-lambda-java-runtime-interface-client/test/integration/test-handler/pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<dependency>
1616
<groupId>com.amazonaws</groupId>
1717
<artifactId>aws-lambda-java-runtime-interface-client</artifactId>
18-
<version>2.6.0</version>
18+
<version>2.8.4</version>
1919
</dependency>
2020
</dependencies>
2121

@@ -50,4 +50,3 @@
5050
</plugins>
5151
</build>
5252
</project>
53-

0 commit comments

Comments
 (0)