Skip to content

Commit 6c34c9a

Browse files
feat(init-templates): update init templates to use the current LTS version of Java (#27422)
This change allows users to use more up-to-date java functionality. Java 8 is now only supported in limited circumstances so we should not set that version here. > REPLACE THIS TEXT BLOCK > > Describe the reason for this change, what the solution is, and any > important design decisions you made. > > Remember to follow the [CONTRIBUTING GUIDE] and [DESIGN GUIDELINES] for any > code you submit. > > [CONTRIBUTING GUIDE]: https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md > [DESIGN GUIDELINES]: https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md Closes #<issue number here>. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent c9d852a commit 6c34c9a

File tree

2 files changed

+7
-8
lines changed
  • packages/aws-cdk/lib/init-templates

2 files changed

+7
-8
lines changed

packages/aws-cdk/lib/init-templates/app/java/pom.xml

+3-4
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,16 @@
1919
<plugin>
2020
<groupId>org.apache.maven.plugins</groupId>
2121
<artifactId>maven-compiler-plugin</artifactId>
22-
<version>3.8.1</version>
22+
<version>3.11.0</version>
2323
<configuration>
24-
<source>1.8</source>
25-
<target>1.8</target>
24+
<release>17</release>
2625
</configuration>
2726
</plugin>
2827

2928
<plugin>
3029
<groupId>org.codehaus.mojo</groupId>
3130
<artifactId>exec-maven-plugin</artifactId>
32-
<version>3.0.0</version>
31+
<version>3.1.0</version>
3332
<configuration>
3433
<mainClass>com.myorg.%name.PascalCased%App</mainClass>
3534
</configuration>

packages/aws-cdk/lib/init-templates/sample-app/java/pom.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
<plugin>
1717
<groupId>org.apache.maven.plugins</groupId>
1818
<artifactId>maven-compiler-plugin</artifactId>
19-
<version>3.8.1</version>
19+
<version>3.11.0</version>
2020
<configuration>
21-
<source>1.8</source>
22-
<target>1.8</target>
21+
<release>17</release>
2322
</configuration>
2423
</plugin>
24+
2525
<plugin>
2626
<groupId>org.codehaus.mojo</groupId>
2727
<artifactId>exec-maven-plugin</artifactId>
28-
<version>3.0.0</version>
28+
<version>3.1.0</version>
2929
<configuration>
3030
<mainClass>com.myorg.%name.PascalCased%App</mainClass>
3131
</configuration>

0 commit comments

Comments
 (0)