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
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
  • Loading branch information
kofemann committed Jul 29, 2024
1 parent 118a5cc commit abe0f45
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 @@ -1342,6 +1342,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 abe0f45

Please sign in to comment.