Skip to content

Commit

Permalink
Add support for events v4 (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-stepanof authored Sep 26, 2023
1 parent 8d9a267 commit 90155b3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
4 changes: 4 additions & 0 deletions aws-lambda-java-serialization/RELEASE.CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### September 21, 2023
`1.1.3`:
- Add support for event v4 lib

### February 22, 2023
`1.1.1`:
- Register `JodaModule` to JacksonFactory
Expand Down
23 changes: 22 additions & 1 deletion aws-lambda-java-serialization/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.amazonaws</groupId>
<artifactId>aws-lambda-java-serialization</artifactId>
<version>1.1.2</version>
<version>1.1.3</version>
<packaging>jar</packaging>

<name>AWS Lambda Java Runtime Serialization</name>
Expand Down Expand Up @@ -211,6 +211,27 @@
<relocation>
<pattern>com.fasterxml.jackson</pattern>
<shadedPattern>${relocation.prefix}.com.fasterxml.jackson</shadedPattern>
<excludes>
<exclude>com.fasterxml.jackson.annotation.JsonInclude</exclude>
<exclude>com.fasterxml.jackson.annotation.JsonInclude$Value</exclude>
<exclude>com.fasterxml.jackson.annotation.JsonInclude$Include</exclude>
<exclude>com.fasterxml.jackson.annotation.JsonProperty</exclude>
<exclude>com.fasterxml.jackson.annotation.JsonProperty$Access</exclude>
<exclude>com.fasterxml.jackson.annotation.JsonFormat</exclude>
<exclude>com.fasterxml.jackson.annotation.JsonFormat$Shape</exclude>
<exclude>com.fasterxml.jackson.annotation.JsonFormat$Feature</exclude>
<exclude>com.fasterxml.jackson.annotation.JsonIgnore</exclude>
<exclude>com.fasterxml.jackson.annotation.JsonSerialize</exclude>
<exclude>com.fasterxml.jackson.annotation.JsonView</exclude>
<exclude>com.fasterxml.jackson.annotation.JsonTypeInfo</exclude>
<exclude>com.fasterxml.jackson.annotation.JsonRawValue</exclude>
<exclude>com.fasterxml.jackson.annotation.JsonUnwrapped</exclude>
<exclude>com.fasterxml.jackson.annotation.JsonBackReference</exclude>
<exclude>com.fasterxml.jackson.annotation.JsonManagedReference</exclude>
<exclude>com.fasterxml.jackson.annotation.JacksonAnnotation</exclude>
<exclude>com.fasterxml.jackson.annotation.JacksonAnnotationValue</exclude>
<exclude>com.fasterxml.jackson.annotation.OptBoolean</exclude>
</excludes>
</relocation>
<relocation>
<pattern>com.google.gson</pattern>
Expand Down
2 changes: 1 addition & 1 deletion aws-lambda-java-serialization/verify-relocation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [[ ! -z "$OUTPUT" ]]; then
fi

echo 'Validating that everything other than serialization module classes were relocated'
OUTPUT=$(zipinfo ${ARTIFACT_PATH} | grep '.class' | grep -v ${SERIALIZATION_MODULE_PATTERN//.//} | grep -v 'META-INF' | grep -v ${RELOCATION_PREFIX//.//} || true)
OUTPUT=$(zipinfo ${ARTIFACT_PATH} | grep '.class' | grep -v ${SERIALIZATION_MODULE_PATTERN//.//} | grep -v 'com.fasterxml.jackson.annotation' | grep -v 'META-INF' | grep -v ${RELOCATION_PREFIX//.//} || true)
if [[ ! -z "$OUTPUT" ]]; then
echo "Some classes were not relocated"
echo ${OUTPUT}
Expand Down

0 comments on commit 90155b3

Please sign in to comment.