Skip to content

Commit 3834807

Browse files
test(java): update boilerplate pom.xml to use the same versions as aws-cdk (cdklabs#532)
* test(java): update boilerplate pom.xml to use the same versions as aws-cdk * Update setup-and-synth.sh Only synth * Update pom.xml * Update setup-and-synth.sh * add java 17 to github action
1 parent a8e7f80 commit 3834807

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

.github/workflows/status-checks.yml

+5
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ jobs:
5555
run: rustup update stable
5656
- name: Install cargo-llvm-cov
5757
uses: taiki-e/install-action@cargo-llvm-cov
58+
- name: Install Java 17
59+
uses: actions/setup-java@v4
60+
with:
61+
distribution: corretto
62+
java-version: 17
5863
- name: Tests with Coverage
5964
run: cargo llvm-cov --all-features --ignore-filename-regex '^(tests/.*\.rs|.*/tests\.rs)$' --no-fail-fast --lcov --output-path target/lcov.info
6065
- name: Coverage Report

tests/end-to-end/app-boilerplate-files/java/pom.xml

+12-5
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@
99

1010
<properties>
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12-
<cdk.version>2.117.0</cdk.version>
12+
<cdk.version>2.119.0</cdk.version>
1313
<constructs.version>[10.0.0,11.0.0)</constructs.version>
14+
<junit.version>5.7.1</junit.version>
1415
</properties>
1516

1617
<build>
1718
<plugins>
1819
<plugin>
1920
<groupId>org.apache.maven.plugins</groupId>
2021
<artifactId>maven-compiler-plugin</artifactId>
21-
<version>3.8.1</version>
22+
<version>3.11.0</version>
2223
<configuration>
23-
<source>1.8</source>
24-
<target>1.8</target>
24+
<release>17</release>
2525
</configuration>
2626
</plugin>
2727

2828
<plugin>
2929
<groupId>org.codehaus.mojo</groupId>
3030
<artifactId>exec-maven-plugin</artifactId>
31-
<version>3.0.0</version>
31+
<version>3.1.1</version>
3232
<configuration>
3333
<mainClass>com.myorg.MyApp</mainClass>
3434
</configuration>
@@ -49,5 +49,12 @@
4949
<artifactId>constructs</artifactId>
5050
<version>${constructs.version}</version>
5151
</dependency>
52+
53+
<dependency>
54+
<groupId>org.junit.jupiter</groupId>
55+
<artifactId>junit-jupiter</artifactId>
56+
<version>${junit.version}</version>
57+
<scope>test</scope>
58+
</dependency>
5259
</dependencies>
5360
</project>

0 commit comments

Comments
 (0)