Skip to content

Commit 42f31b2

Browse files
committed
Update to Java 21
1 parent 89fd154 commit 42f31b2

File tree

7 files changed

+5
-11
lines changed

7 files changed

+5
-11
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ The Serverless Application Model Command Line Interface (SAM CLI) is an extensio
4242
To use the SAM CLI, you need the following tools.
4343

4444
* SAM CLI - [Install the SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html)
45-
* Java11 - [Install the Java 11](https://docs.aws.amazon.com/corretto/latest/corretto-11-ug/downloads-list.html)
45+
* Java21 - [Install the Java 21](https://docs.aws.amazon.com/corretto/latest/corretto-21-ug/downloads-list.html)
4646
* Maven - [Install Maven](https://maven.apache.org/install.html)
4747

4848
If you have brew installed then
4949
```bash
5050
brew install aws-sam-cli
51-
brew install corretto11
51+
brew install corretto21
5252
brew install maven
5353
```
5454

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<packaging>jar</packaging>
88
<name>Postgres Lambda Trigger Demo</name>
99
<properties>
10-
<maven.compiler.source>17</maven.compiler.source>
11-
<maven.compiler.target>17</maven.compiler.target>
10+
<maven.compiler.source>21</maven.compiler.source>
11+
<maven.compiler.target>21</maven.compiler.target>
1212
</properties>
1313

1414
<dependencyManagement>

src/main/java/demo/AbstractActionFrontEnd.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent;
1010
import org.apache.logging.log4j.LogManager;
1111
import org.apache.logging.log4j.Logger;
12-
import org.jooq.DSLContext;
1312
import org.jooq.Record;
1413
import org.jooq.Table;
1514
import org.jooq.impl.DSL;

src/main/java/demo/FrontEnd.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent;
1010
import org.apache.logging.log4j.LogManager;
1111
import org.apache.logging.log4j.Logger;
12-
import org.jooq.DSLContext;
1312
import org.jooq.impl.DSL;
1413

1514
/**

src/main/java/demo/PostgresAbstractTrigger.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import java.io.Writer;
1616
import org.apache.logging.log4j.LogManager;
1717
import org.apache.logging.log4j.Logger;
18-
import org.jooq.DSLContext;
1918

2019
/**
2120
* Base class for handling triggers from Postgres

src/main/java/demo/PostgresAuditLogTrigger.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package demo;
66

77
import com.fasterxml.jackson.databind.JsonNode;
8-
import org.jooq.DataType;
98
import org.jooq.JSONB;
109
import org.jooq.impl.DSL;
1110

template.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,13 @@ Globals:
1717
Function:
1818
Environment:
1919
Variables:
20-
JAVA_TOOL_OPTIONS: -XX:+TieredCompilation -XX:TieredStopAtLevel=1
2120
DB_MASTER_SECRET_ARN: !GetAtt RDSStack.Outputs.SecretArn
2221
DB_ENDPOINT: !GetAtt RDSStack.Outputs.Endpoint
2322
DB_NAME: !Ref DBNAMEPARAM
2423
CodeUri: .
2524
Architectures:
2625
- x86_64
27-
Runtime: java17
26+
Runtime: java21
2827
Timeout: 30
2928
MemorySize: 3009
3029

@@ -262,7 +261,6 @@ Resources:
262261
Variables:
263262
SQS_QUEUE_URL: !Ref SQSQueue
264263
# Don't need to set anything for this lambda other than above
265-
JAVA_TOOL_OPTIONS: !Ref AWS::NoValue
266264
DB_MASTER_SECRET_ARN: !Ref AWS::NoValue
267265
DB_ENDPOINT: !Ref AWS::NoValue
268266
DB_NAME: !Ref AWS::NoValue

0 commit comments

Comments
 (0)