Skip to content

Commit 5de8acb

Browse files
darklight3itDavide Melfi
andauthored
chore: move to maven central, update some maven plugin fixing errors. (#580)
Co-authored-by: Davide Melfi <[email protected]>
1 parent 23243f3 commit 5de8acb

File tree

13 files changed

+42
-50
lines changed
  • aws-lambda-java-events-sdk-transformer
  • aws-lambda-java-events
  • aws-lambda-java-log4j2
  • aws-lambda-java-serialization
  • aws-lambda-java-tests
  • experimental/aws-lambda-java-profiler/examples/function/profiling-example
  • samples
    • custom-serialization
    • kinesis-firehose-event-handler

13 files changed

+42
-50
lines changed

aws-lambda-java-events-sdk-transformer/pom.xml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,18 +160,16 @@
160160
</executions>
161161
</plugin>
162162
<plugin>
163-
<groupId>org.sonatype.plugins</groupId>
164-
<artifactId>nexus-staging-maven-plugin</artifactId>
165-
<version>1.6.3</version>
163+
<groupId>org.sonatype.central</groupId>
164+
<artifactId>central-publishing-maven-plugin</artifactId>
165+
<version>0.8.0</version>
166166
<extensions>true</extensions>
167167
<configuration>
168-
<serverId>sonatype-nexus-staging</serverId>
169-
<nexusUrl>https://aws.oss.sonatype.org/</nexusUrl>
170-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
168+
<publishingServerId>central</publishingServerId>
171169
</configuration>
172170
</plugin>
173171
</plugins>
174172
</build>
175173
</profile>
176174
</profiles>
177-
</project>
175+
</project>

aws-lambda-java-events/pom.xml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0"
2-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55

66
<groupId>com.amazonaws</groupId>
@@ -152,28 +152,26 @@
152152
</executions>
153153
</plugin>
154154
<plugin>
155-
<groupId>org.sonatype.plugins</groupId>
156-
<artifactId>nexus-staging-maven-plugin</artifactId>
157-
<version>1.6.3</version>
155+
<groupId>org.sonatype.central</groupId>
156+
<artifactId>central-publishing-maven-plugin</artifactId>
157+
<version>0.8.0</version>
158158
<extensions>true</extensions>
159159
<configuration>
160-
<serverId>sonatype-nexus-staging</serverId>
161-
<nexusUrl>https://aws.oss.sonatype.org/</nexusUrl>
162-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
160+
<publishingServerId>central</publishingServerId>
163161
</configuration>
164162
</plugin>
165163
<plugin>
166164
<groupId>org.apache.maven.plugins</groupId>
167165
<artifactId>maven-resources-plugin</artifactId>
168-
<version>3.2.0</version>
166+
<version>3.3.1</version>
169167
<configuration>
170168
<encoding>UTF-8</encoding>
171169
</configuration>
172170
</plugin>
173171
<plugin>
174172
<groupId>org.apache.maven.plugins</groupId>
175173
<artifactId>maven-compiler-plugin</artifactId>
176-
<version>3.8.1</version>
174+
<version>3.11.0</version>
177175
<configuration>
178176
<annotationProcessorPaths>
179177
<path>
@@ -189,4 +187,4 @@
189187
</build>
190188
</profile>
191189
</profiles>
192-
</project>
190+
</project>

aws-lambda-java-log4j2/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ If using maven shade plugin, set the plugin configuration as follows
3939
<plugin>
4040
<groupId>org.apache.maven.plugins</groupId>
4141
<artifactId>maven-shade-plugin</artifactId>
42-
<version>2.4.3</version>
42+
<version>3.6.1</version>
4343
<executions>
4444
<execution>
4545
<phase>package</phase>

aws-lambda-java-log4j2/pom.xml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,16 @@
134134
</executions>
135135
</plugin>
136136
<plugin>
137-
<groupId>org.sonatype.plugins</groupId>
138-
<artifactId>nexus-staging-maven-plugin</artifactId>
139-
<version>1.6.3</version>
137+
<groupId>org.sonatype.central</groupId>
138+
<artifactId>central-publishing-maven-plugin</artifactId>
139+
<version>0.8.0</version>
140140
<extensions>true</extensions>
141141
<configuration>
142-
<serverId>sonatype-nexus-staging</serverId>
143-
<nexusUrl>https://aws.oss.sonatype.org/</nexusUrl>
144-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
142+
<publishingServerId>central</publishingServerId>
145143
</configuration>
146144
</plugin>
147145
</plugins>
148146
</build>
149147
</profile>
150148
</profiles>
151-
</project>
149+
</project>

aws-lambda-java-serialization/pom.xml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

55
<groupId>com.amazonaws</groupId>
@@ -169,14 +169,12 @@
169169
</executions>
170170
</plugin>
171171
<plugin>
172-
<groupId>org.sonatype.plugins</groupId>
173-
<artifactId>nexus-staging-maven-plugin</artifactId>
174-
<version>1.6.3</version>
172+
<groupId>org.sonatype.central</groupId>
173+
<artifactId>central-publishing-maven-plugin</artifactId>
174+
<version>0.8.0</version>
175175
<extensions>true</extensions>
176176
<configuration>
177-
<serverId>sonatype-nexus-staging</serverId>
178-
<nexusUrl>https://aws.oss.sonatype.org/</nexusUrl>
179-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
177+
<publishingServerId>central</publishingServerId>
180178
</configuration>
181179
</plugin>
182180
</plugins>

aws-lambda-java-tests/pom.xml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

55
<groupId>com.amazonaws</groupId>
@@ -220,14 +220,12 @@
220220
</executions>
221221
</plugin>
222222
<plugin>
223-
<groupId>org.sonatype.plugins</groupId>
224-
<artifactId>nexus-staging-maven-plugin</artifactId>
225-
<version>1.6.3</version>
223+
<groupId>org.sonatype.central</groupId>
224+
<artifactId>central-publishing-maven-plugin</artifactId>
225+
<version>0.8.0</version>
226226
<extensions>true</extensions>
227227
<configuration>
228-
<serverId>sonatype-nexus-staging</serverId>
229-
<nexusUrl>https://aws.oss.sonatype.org/</nexusUrl>
230-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
228+
<publishingServerId>central</publishingServerId>
231229
</configuration>
232230
</plugin>
233231
</plugins>
@@ -240,7 +238,7 @@
240238
<plugin>
241239
<groupId>org.apache.maven.plugins</groupId>
242240
<artifactId>maven-compiler-plugin</artifactId>
243-
<version>3.8.1</version>
241+
<version>3.11.0</version>
244242
<configuration>
245243
<source>${maven.compiler.source}</source>
246244
<target>${maven.compiler.target}</target>
@@ -254,4 +252,4 @@
254252
</plugin>
255253
</plugins>
256254
</build>
257-
</project>
255+
</project>

experimental/aws-lambda-java-profiler/examples/function/profiling-example/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<plugin>
4747
<groupId>org.apache.maven.plugins</groupId>
4848
<artifactId>maven-shade-plugin</artifactId>
49-
<version>3.2.4</version>
49+
<version>3.6.1</version>
5050
<configuration>
5151
</configuration>
5252
<executions>

samples/custom-serialization/fastJson/HelloWorldFunction/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<plugin>
3636
<groupId>org.apache.maven.plugins</groupId>
3737
<artifactId>maven-shade-plugin</artifactId>
38-
<version>3.2.4</version>
38+
<version>3.6.1</version>
3939
<configuration>
4040
</configuration>
4141
<executions>

samples/custom-serialization/gson/HelloWorldFunction/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<plugin>
3535
<groupId>org.apache.maven.plugins</groupId>
3636
<artifactId>maven-shade-plugin</artifactId>
37-
<version>3.2.4</version>
37+
<version>3.6.1</version>
3838
<configuration>
3939
</configuration>
4040
<executions>

samples/custom-serialization/jackson-jr/HelloWorldFunction/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ dependencies {
1414
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.15.2'
1515
}
1616

17-
sourceCompatibility = 21
18-
targetCompatibility = 21
17+
java {
18+
sourceCompatibility = JavaVersion.VERSION_21
19+
targetCompatibility = JavaVersion.VERSION_21
20+
}

0 commit comments

Comments
 (0)