Skip to content

Commit

Permalink
fixes #14: Prevent JUnit failure when Java modules are used
Browse files Browse the repository at this point in the history
  • Loading branch information
guusdk committed Nov 22, 2023
1 parent 5b06713 commit 0607b9a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,34 @@
</dependency>
</dependencies>

<profiles>
<profile>
<id>modular-java</id>
<activation>
<jdk>[9,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>default-test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
<configuration>
<argLine>
--add-opens=java.base/javax.crypto.spec=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 0607b9a

Please sign in to comment.