-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
60 changed files
with
865 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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.