Skip to content

Commit

Permalink
[JDK] Update Java version from 8 to 17 for GlobalCluster resource (aw…
Browse files Browse the repository at this point in the history
  • Loading branch information
akwan224 authored Mar 25, 2024
1 parent 1d44011 commit f17e31a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion aws-rds-globalcluster/.rpdk-config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"artifact_type": "RESOURCE",
"typeName": "AWS::RDS::GlobalCluster",
"language": "java",
"runtime": "java11",
"runtime": "java17",
"entrypoint": "software.amazon.rds.globalcluster.HandlerWrapper::handleRequest",
"testEntrypoint": "software.amazon.rds.globalcluster.HandlerWrapper::testEntrypoint",
"settings": {
Expand Down
7 changes: 4 additions & 3 deletions aws-rds-globalcluster/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
<packaging>jar</packaging>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<java.version>17</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
Expand Down Expand Up @@ -117,7 +118,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<version>3.12.1</version>
<configuration>
<compilerArgs>
<arg>-Xlint:all,-options,-processing</arg>
Expand Down
4 changes: 2 additions & 2 deletions aws-rds-globalcluster/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: software.amazon.rds.globalcluster.HandlerWrapper::handleRequest
Runtime: java11
Runtime: java17
CodeUri: ./target/aws-rds-globalcluster-handler-1.0-SNAPSHOT.jar

TestEntrypoint:
Type: AWS::Serverless::Function
Properties:
Handler: software.amazon.rds.globalcluster.HandlerWrapper::testEntrypoint
Runtime: java11
Runtime: java17
CodeUri: ./target/aws-rds-globalcluster-handler-1.0-SNAPSHOT.jar

0 comments on commit f17e31a

Please sign in to comment.