Skip to content

Commit

Permalink
fix build on jdk 17
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdullinAM committed Jan 17, 2024
1 parent 279a25e commit da4fbb1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kex-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<reflections.version>0.10.2</reflections.version>
<symkt.version>0.0.0.6</symkt.version>
<easy-random.version>4.3.0-kex-0.0.3</easy-random.version>
<ktor.version>2.3.3</ktor.version>
<ktor.version>2.3.5</ktor.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -191,6 +191,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<configuration>
<argLine>${test.jvm.params}</argLine>
<systemPropertyVariables>
<!--suppress UnresolvedMavenProperty -->
<root.dir>${project.parent.basedir.canonicalPath}</root.dir>
Expand Down
1 change: 1 addition & 0 deletions kex-runner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<configuration>
<argLine>${test.jvm.params}</argLine>
<systemPropertyVariables>
<!--suppress UnresolvedMavenProperty -->
<root.dir>${project.parent.basedir.canonicalPath}</root.dir>
Expand Down
9 changes: 9 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@
<logback.version>1.2.11</logback.version>
<slf4j.version>1.7.36</slf4j.version>
<commons-cli.version>1.5.0</commons-cli.version>

<test.jvm.params>
-XX:+IgnoreUnrecognizedVMOptions
"--add-opens java.base/java.lang=ALL-UNNAMED"
"--add-opens java.base/java.util=ALL-UNNAMED"
"--add-opens java.base/java.math=ALL-UNNAMED"
"--add-opens java.base/java.lang.reflect=ALL-UNNAMED"
--illegal-access=warn
</test.jvm.params>
</properties>

<repositories>
Expand Down

0 comments on commit da4fbb1

Please sign in to comment.