Skip to content

Commit 614db88

Browse files
authored
Merge pull request #304 from jmock-developers/feature/add-newer-java-lts-builds
Add support for Java 17 and 21 to the build
2 parents 70c38b9 + bdc0264 commit 614db88

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ jobs:
1414
strategy:
1515
fail-fast: true
1616
matrix:
17-
java: [ 8, 11 ]
17+
java: [ 8, 11, 17, 21 ]
1818
experimental: [false]
19-
include:
20-
- java: 17
21-
experimental: true
2219
steps:
2320
- uses: actions/checkout@v3
2421
- name: Set up JDK ${{ matrix.java }}

jmock-imposters-tests/pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,24 @@
7474
</plugin>
7575
</plugins>
7676
</build>
77+
<profiles>
78+
<profile>
79+
<id>java9-and-above</id>
80+
<activation>
81+
<jdk>[9,)</jdk>
82+
</activation>
83+
<build>
84+
<plugins>
85+
<plugin>
86+
<groupId>org.apache.maven.plugins</groupId>
87+
<artifactId>maven-surefire-plugin</artifactId>
88+
<configuration>
89+
<argLine>--add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED</argLine>
90+
</configuration>
91+
</plugin>
92+
</plugins>
93+
</build>
94+
</profile>
95+
</profiles>
7796

7897
</project>

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
<downloadSources>true</downloadSources>
4949
<hamcrest.version>2.2</hamcrest.version>
5050
<junit.version>4.13.2</junit.version>
51-
<asm.version>8.0.1</asm.version>
51+
<asm.version>9.8</asm.version>
5252
<objenesis.version>3.3</objenesis.version>
5353
<bsh.version>2.0b6</bsh.version>
5454
<junit.jupiter.version>5.10.2</junit.jupiter.version>
55-
<bytebuddy.version>1.14.13</bytebuddy.version>
55+
<bytebuddy.version>1.17.6</bytebuddy.version>
5656
</properties>
5757

5858
<modules>

0 commit comments

Comments
 (0)