File tree 2 files changed +9
-4
lines changed
powertools-e2e-tests/src/test/java/software/amazon/lambda/powertools/testutils
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 37
37
java : [ 8, 11, 17, 21 ]
38
38
name : End-to-end tests java${{ matrix.java }}
39
39
env :
40
- JAVA_VERSION : ${{ matrix.java }}
41
40
AWS_DEFAULT_REGION : eu-west-1
41
+
42
+ # If matrix.version is 21, use 17, otherwise use matrix.version
43
+ # This is because AspectJ does not yet support weaving with Java21; we want
44
+ # to test the Java21 runtime, but we can't yet use the JDK21 compiler.
45
+ # https://github.com/eclipse-aspectj/aspectj/issues/260#issuecomment-1815920274
46
+ JAVA_VERSION : ${{ (matrix.java == 21 && '17') || matrix.java }}
47
+ JAVA_LAMBDA_RUNTIME_VERSION : ${{ matrix.java }}
42
48
permissions :
43
49
id-token : write # needed to interact with GitHub's OIDC Token endpoint.
44
50
contents : read
48
54
uses : actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
49
55
with :
50
56
distribution : ' corretto'
51
- java-version : ${{ matrix.java }}
57
+ # See comment above on JAVA_VERSION env var
58
+ java-version : ${{ (matrix.java == 21 && '17') || matrix.java }}
52
59
cache : maven
53
60
- name : Setup AWS credentials
54
61
uses : aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2.2.0
Original file line number Diff line number Diff line change @@ -509,8 +509,6 @@ private Builder() {
509
509
runtime = mapRuntimeVersion ("JAVA_VERSION" );
510
510
}
511
511
512
-
513
-
514
512
private JavaRuntime mapRuntimeVersion (String environmentVariableName ) {
515
513
String javaVersion = System .getenv (environmentVariableName ); // must be set in GitHub actions
516
514
JavaRuntime ret = null ;
You can’t perform that action at this time.
0 commit comments