Skip to content

Commit

Permalink
pom: add exta java option to run powermock test under java17
Browse files Browse the repository at this point in the history
Result:
it's possible to use java17 compiler to produce java11 bytecode

Acked-by: Lea Morschel
Target: master
Require-book: no
Require-notes: no
  • Loading branch information
kofemann committed Oct 20, 2023
1 parent 81c7e94 commit 88a8028
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1357,6 +1357,16 @@
to accept the overhead of forking each test run. -->
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<!-- Make Powermock compatible with JDK 17 -->
<argLine>
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.util=ALL-UNNAMED
--add-opens java.base/java.lang.reflect=ALL-UNNAMED
--add-opens java.base/java.time=ALL-UNNAMED
--add-opens java.base/java.time.format=ALL-UNNAMED
--add-opens java.base/java.util.concurrent=ALL-UNNAMED
--add-opens java.base/java.util.stream=ALL-UNNAMED
</argLine>
</configuration>
</plugin>

Expand Down

0 comments on commit 88a8028

Please sign in to comment.