Skip to content

Commit 3ad7464

Browse files
committed
Update hello world example to Java 25.
1 parent 7ea89de commit 3ad7464

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

examples/powertools-examples-core-utilities/sam/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<packaging>jar</packaging>
1010

1111
<properties>
12-
<maven.compiler.source>11</maven.compiler.source>
13-
<maven.compiler.target>11</maven.compiler.target>
14-
<aspectj.version>1.9.20.1</aspectj.version>
12+
<maven.compiler.source>25</maven.compiler.source>
13+
<maven.compiler.target>25</maven.compiler.target>
14+
<aspectj.version>1.9.25</aspectj.version>
1515
</properties>
1616

1717
<dependencies>

examples/powertools-examples-core-utilities/sam/template.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ Description: >
77
Globals:
88
Function:
99
Timeout: 20
10-
Runtime: java11
10+
Runtime: java25
1111
MemorySize: 512
1212
Tracing: Active # https://docs.aws.amazon.com/lambda/latest/dg/lambda-x-ray.html
1313
Environment:
1414
Variables:
1515
# Powertools for AWS Lambda (Java) env vars: https://docs.powertools.aws.dev/lambda/java/#environment-variables
16-
POWERTOOLS_LOG_LEVEL: DEBUG # We use log buffering to buffer DEBUG logs (see log4j2.xml)
1716
POWERTOOLS_LOGGER_SAMPLE_RATE: 0.1
1817
POWERTOOLS_LOGGER_LOG_EVENT: true
1918
POWERTOOLS_METRICS_NAMESPACE: Coreutilities
@@ -27,6 +26,9 @@ Resources:
2726
Environment: # More info about Env Vars: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#environment-object
2827
Variables:
2928
POWERTOOLS_SERVICE_NAME: hello
29+
# AutoPublishAlias: live
30+
# SnapStart:
31+
# ApplyOn: PublishedVersions
3032
Events:
3133
HelloWorld:
3234
Type: Api # More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api

0 commit comments

Comments
 (0)