Skip to content

Commit 7ba155d

Browse files
committed
Use Java 11 runtime for blank-java example
- Upgrade runtime from java8 to java11 - Increase code memory size from 512MB -> 2048MB - Tested all steps and function still runs properly
1 parent 17aede5 commit 7ba155d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

sample-apps/blank-java/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ task packageSkinny(type: Zip) {
5353
}
5454

5555
java {
56-
sourceCompatibility = JavaVersion.VERSION_1_8
57-
targetCompatibility = JavaVersion.VERSION_1_8
56+
sourceCompatibility = JavaVersion.VERSION_11
57+
targetCompatibility = JavaVersion.VERSION_11
5858
}
5959

6060
build.dependsOn packageSkinny

sample-apps/blank-java/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<name>blank-java-function</name>
99
<properties>
1010
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
11-
<maven.compiler.source>1.8</maven.compiler.source>
12-
<maven.compiler.target>1.8</maven.compiler.target>
11+
<maven.compiler.source>11</maven.compiler.source>
12+
<maven.compiler.target>11</maven.compiler.target>
1313
</properties>
1414
<dependencies>
1515
<dependency>

sample-apps/blank-java/template-mvn.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Resources:
77
Properties:
88
CodeUri: target/blank-java-1.0-SNAPSHOT.jar
99
Handler: example.Handler::handleRequest
10-
Runtime: java8
10+
Runtime: java11
1111
Description: Java function
12-
MemorySize: 512
12+
MemorySize: 2048
1313
Timeout: 10
1414
# Function's execution role
1515
Policies:

sample-apps/blank-java/template.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Resources:
77
Properties:
88
CodeUri: build/distributions/blank-java.zip
99
Handler: example.Handler::handleRequest
10-
Runtime: java8
10+
Runtime: java11
1111
Description: Java function
12-
MemorySize: 512
12+
MemorySize: 2048
1313
Timeout: 10
1414
# Function's execution role
1515
Policies:

0 commit comments

Comments
 (0)