Skip to content

Commit f472e28

Browse files
authored
Update to make the CLI aware of Java21 support (#265)
1 parent e4d7215 commit f472e28

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ A CLI to install the New Relic AWS Lambda integration and layers.
3737
* java8.al2
3838
* java11
3939
* java17
40+
* java21
4041
* nodejs16.x
4142
* nodejs18.x
4243
* nodejs20.x

newrelic_lambda_cli/utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
NEW_RELIC_ARN_PREFIX_TEMPLATE = "arn:aws:lambda:%s:451483290750"
1111
RUNTIME_CONFIG = {
1212
"dotnetcore3.1": {"LambdaExtension": True},
13+
"java21": {
14+
"Handler": "com.newrelic.java.HandlerWrapper::",
15+
"LambdaExtension": True,
16+
},
1317
"java17": {
1418
"Handler": "com.newrelic.java.HandlerWrapper::",
1519
"LambdaExtension": True,

tests/test_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def test_supports_lambda_extension():
7777
supports_lambda_extension(runtime)
7878
for runtime in (
7979
"dotnetcore3.1",
80+
"java21",
8081
"java17",
8182
"java11",
8283
"java8.al2",

0 commit comments

Comments
 (0)