-
Notifications
You must be signed in to change notification settings - Fork 148
Feat java21 runtime #574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Feat java21 runtime #574
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
["java8"], | ||
["java11"], | ||
["java17"], | ||
["java21"], | ||
], | ||
) | ||
class TestJavaGradle(TestCase): | ||
|
5 changes: 5 additions & 0 deletions
5
...ion/workflows/java_gradle/testdata/multi-build/java21/with-deps-inter-module/build.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
allprojects { | ||
repositories { | ||
mavenCentral() | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...kflows/java_gradle/testdata/multi-build/java21/with-deps-inter-module/common/build.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
plugins { | ||
id 'java' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'software.amazon.awssdk:annotations:2.1.0' | ||
} | ||
|
||
java.sourceCompatibility = JavaVersion.VERSION_21 | ||
java.targetCompatibility = JavaVersion.VERSION_21 |
7 changes: 7 additions & 0 deletions
7
...ulti-build/java21/with-deps-inter-module/common/src/main/java/aws/lambdabuilders/Foo.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package aws.lambdabuilders; | ||
|
||
public class Foo { | ||
public void sayHello() { | ||
System.out.println("Hello world!"); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...flows/java_gradle/testdata/multi-build/java21/with-deps-inter-module/lambda1/build.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
plugins { | ||
id 'java' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'software.amazon.awssdk:annotations:2.1.0' | ||
implementation project(':common') | ||
} | ||
|
||
java.sourceCompatibility = JavaVersion.VERSION_21 | ||
java.targetCompatibility = JavaVersion.VERSION_21 |
7 changes: 7 additions & 0 deletions
7
.../java21/with-deps-inter-module/lambda1/src/main/java/aws/lambdabuilders/Lambda1_Main.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package aws.lambdabuilders; | ||
|
||
public class Lambda1_Main { | ||
public static void main(String[] args) { | ||
System.out.println("Hello AWS Lambda Builders!"); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...flows/java_gradle/testdata/multi-build/java21/with-deps-inter-module/lambda2/build.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
plugins { | ||
id 'java' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'software.amazon.awssdk:annotations:2.1.0' | ||
} | ||
|
||
java.sourceCompatibility = JavaVersion.VERSION_21 | ||
java.targetCompatibility = JavaVersion.VERSION_21 |
7 changes: 7 additions & 0 deletions
7
.../java21/with-deps-inter-module/lambda2/src/main/java/aws/lambdabuilders/Lambda2_Main.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package aws.lambdabuilders; | ||
|
||
public class Lambda2_Main { | ||
public static void main(String[] args) { | ||
System.out.println("Hello AWS Lambda Builders!"); | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
.../workflows/java_gradle/testdata/multi-build/java21/with-deps-inter-module/settings.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
rootProject.name = 'multi-build' | ||
include 'lambda1', 'lambda2', 'common' |
5 changes: 5 additions & 0 deletions
5
tests/integration/workflows/java_gradle/testdata/multi-build/java21/with-deps/build.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
allprojects { | ||
repositories { | ||
mavenCentral() | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...egration/workflows/java_gradle/testdata/multi-build/java21/with-deps/lambda1/build.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
plugins { | ||
id 'java' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'software.amazon.awssdk:annotations:2.1.0' | ||
} | ||
|
||
java.sourceCompatibility = JavaVersion.VERSION_21 | ||
java.targetCompatibility = JavaVersion.VERSION_21 |
7 changes: 7 additions & 0 deletions
7
...a/multi-build/java21/with-deps/lambda1/src/main/java/aws/lambdabuilders/Lambda1_Main.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package aws.lambdabuilders; | ||
|
||
public class Lambda1_Main { | ||
public static void main(String[] args) { | ||
System.out.println("Hello AWS Lambda Builders!"); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...egration/workflows/java_gradle/testdata/multi-build/java21/with-deps/lambda2/build.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
plugins { | ||
id 'java' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'software.amazon.awssdk:annotations:2.1.0' | ||
} | ||
|
||
java.sourceCompatibility = JavaVersion.VERSION_21 | ||
java.targetCompatibility = JavaVersion.VERSION_21 |
7 changes: 7 additions & 0 deletions
7
...a/multi-build/java21/with-deps/lambda2/src/main/java/aws/lambdabuilders/Lambda2_Main.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package aws.lambdabuilders; | ||
|
||
public class Lambda2_Main { | ||
public static void main(String[] args) { | ||
System.out.println("Hello AWS Lambda Builders!"); | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
...s/integration/workflows/java_gradle/testdata/multi-build/java21/with-deps/settings.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
rootProject.name = 'multi-build' | ||
include 'lambda1', 'lambda2' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
tests/integration/workflows/java_gradle/testdata/single-build/java21/layer/build.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
plugins { | ||
id 'java' | ||
id 'java-library' | ||
id 'maven-publish' | ||
} | ||
|
||
repositories { | ||
mavenLocal() | ||
maven { | ||
url = uri('https://repo.maven.apache.org/maven2/') | ||
} | ||
} | ||
|
||
dependencies { | ||
api 'com.amazonaws:aws-lambda-java-core:1.2.0' | ||
} | ||
|
||
group = 'aws.lambdabuilders' | ||
version = '1.0' | ||
description = 'common-layer-gradle' | ||
java.sourceCompatibility = JavaVersion.VERSION_21 | ||
java.targetCompatibility = JavaVersion.VERSION_21 | ||
|
||
build.finalizedBy publishToMavenLocal | ||
|
||
publishing { | ||
publications { | ||
maven(MavenPublication) { | ||
from(components.java) | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
tests/integration/workflows/java_gradle/testdata/single-build/java21/layer/settings.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rootProject.name = 'common-layer-gradle' |
10 changes: 10 additions & 0 deletions
10
...radle/testdata/single-build/java21/layer/src/main/java/aws/lambdabuilders/CommonCode.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package aws.lambdabuilders; | ||
|
||
import com.amazonaws.services.lambda.runtime.LambdaLogger; | ||
|
||
public class CommonCode { | ||
|
||
public static void doSomethingOnLayer(final LambdaLogger logger, final String s) { | ||
logger.log("Doing something on layer" + s); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...egration/workflows/java_gradle/testdata/single-build/java21/with-deps-broken/build.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
plugins { | ||
id 'java' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'software.amazon.awssdk:does-not-exist:1.2.3' | ||
} | ||
|
||
java.sourceCompatibility = JavaVersion.VERSION_21 | ||
java.targetCompatibility = JavaVersion.VERSION_21 |
7 changes: 7 additions & 0 deletions
7
.../testdata/single-build/java21/with-deps-broken/src/main/java/aws/lambdabuilders/Main.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package aws.lambdabuilders; | ||
|
||
public class Main { | ||
public static void main(String[] args) { | ||
System.out.println("Hello AWS Lambda Builders!"); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...gration/workflows/java_gradle/testdata/single-build/java21/with-deps-gradlew/build.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
plugins { | ||
id 'java' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'software.amazon.awssdk:annotations:2.1.0' | ||
} | ||
|
||
java.sourceCompatibility = JavaVersion.VERSION_21 | ||
java.targetCompatibility = JavaVersion.VERSION_21 |
Binary file added
BIN
+58.4 KB
...a_gradle/testdata/single-build/java21/with-deps-gradlew/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
...e/testdata/single-build/java21/with-deps-gradlew/gradle/wrapper/gradle-wrapper.properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!