Skip to content

Commit

Permalink
Use Maven toolchain for Surefire plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcono1234 committed Nov 8, 2021
1 parent 2dfccd2 commit e654f9f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gson/pom.xml
Expand Up @@ -71,13 +71,14 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<jdkToolchain>
<!-- Require at least Java 9 for tests, see below -->
<version>[9,)</version>
</jdkToolchain>
<!-- Deny illegal access, this is required for ReflectionAccessTest -->
<!-- Requires Java >= 9; Important: In case future Java versions
don't support this flag anymore, don't remove it unless CI also runs with
that Java version. Ideally would use toolchain to specify that this should
run with e.g. Java 11, but Maven toolchain requirements (unlike Gradle ones)
don't seem to be portable (every developer would have to set up toolchain
configuration locally). -->
that Java version -->
<argLine>--illegal-access=deny</argLine>
</configuration>
</plugin>
Expand Down

0 comments on commit e654f9f

Please sign in to comment.