Skip to content

Commit d5706e5

Browse files
committed
fix: remove redundant $JAVA_HOME switches
1 parent cf1f9f3 commit d5706e5

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

.github/workflows/samples.yml

-13
Original file line numberDiff line numberDiff line change
@@ -49,28 +49,15 @@ jobs:
4949
21
5050
distribution: corretto
5151

52-
# Check Java versions
53-
- name: Verify Java installations
54-
run: |
55-
echo "Default Java version:"
56-
java -version
57-
echo "JAVA_HOME=$JAVA_HOME"
58-
5952
# Install events module using Java 8
6053
- name: Install events with Maven
6154
run: |
6255
export JAVA_HOME=$JAVA_HOME_8_X64
6356
mvn -B clean install \
6457
-Dmaven.compiler.source=1.8 \
6558
-Dmaven.compiler.target=1.8 \
66-
-Dmaven.compiler.forceJavacCompilerUse=true \
67-
-Dmaven.compiler.plugin.version=3.5.1 \
6859
--file aws-lambda-java-events/pom.xml
6960
70-
# Switch back to Java 21 for the rest of the build
71-
- name: Set JAVA_HOME back to Java 21
72-
run: export JAVA_HOME=$JAVA_HOME_21_X64
73-
7461
# Build custom-serialization samples
7562
- name: install sam
7663
uses: aws-actions/setup-sam@v2

0 commit comments

Comments
 (0)