Skip to content

Commit ea24580

Browse files
committed
fix: specify compiler flag for Java 21
1 parent b8519ee commit ea24580

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/samples.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ jobs:
4747

4848
# Install events module
4949
- name: Install events with Maven
50-
run: mvn -B install --file aws-lambda-java-events/pom.xml
50+
run: |
51+
mvn -B install \
52+
-Dmaven.compiler.plugin.version=3.11.0 \
53+
-Dmaven.compiler.source=21 \
54+
-Dmaven.compiler.target=21 \
55+
--file aws-lambda-java-events/pom.xml
5156
# Build custom-serialization samples
5257
- name: install sam
5358
uses: aws-actions/setup-sam@v2

0 commit comments

Comments
 (0)