Skip to content

Commit

Permalink
fix xstream error
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Coles committed Mar 11, 2021
1 parent 5cdecca commit 8426158
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
1 change: 0 additions & 1 deletion pitest-entry/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@
<dependency>
<groupId>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier</artifactId>
<version>1.7.5</version>
<scope>test</scope>
</dependency>

Expand Down
20 changes: 19 additions & 1 deletion pitest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,23 @@
<url>http://pitest.org</url>
<description>Mutation testing system for Java.</description>

<properties>
<surefire.argline/>
</properties>
<profiles>
<profile>
<id>jdk16</id>
<activation>
<jdk>16</jdk>
</activation>
<properties>
<!-- pitest does not use reflection, but some of the tests depend on xstream, which does. Jdk 16 fails with
errors due to the module system. jdk8 does not support the add-opens option, so it must be activated here by jdk-->
<surefire.argline>--add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.ref=ALL-UNNAMED</surefire.argline>
</properties>
</profile>
</profiles>

<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -42,6 +59,8 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<testNGArtifactName>none:none</testNGArtifactName>
<!-- pitest does not use reflection, but some of the tests depend on xstream, which does -->
<argLine>${surefire.argline}</argLine>

<includes>
<include>org/**/Test*.java</include>
Expand Down Expand Up @@ -220,7 +239,6 @@
<dependency>
<groupId>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier</artifactId>
<version>3.5.4</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
13 changes: 12 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,17 @@
</profile>
</profiles>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier</artifactId>
<version>3.5.4</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>

<!-- common dependencies used in all subprojects -->
<dependencies>
<dependency>
Expand All @@ -154,7 +165,7 @@
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.9.0</version>
<version>3.19.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down

0 comments on commit 8426158

Please sign in to comment.