Skip to content

Commit

Permalink
disable parallel junit 5 test execution only for java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Nov 8, 2023
1 parent a77fced commit 5db949d
Showing 1 changed file with 30 additions and 24 deletions.
54 changes: 30 additions & 24 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -329,30 +329,6 @@
</plugin>

</plugins>
<pluginManagement>
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>

<!-- Disable parallel test execution for JUnit 5 -->
<!--
<properties>
<configurationParameters>
junit.jupiter.execution.parallel.enabled = false
junit.jupiter.execution.parallel.mode.default = same_thread
junit.jupiter.execution.parallel.mode.classes.default = concurrent
</configurationParameters>
</properties>
-->

</configuration>
</plugin>

</plugins>
</pluginManagement>
</build>

<reporting>
Expand Down Expand Up @@ -390,4 +366,34 @@
</site>
</distributionManagement>

<profiles>
<profile>
<activation>
<jdk>21</jdk>
</activation>
<build>
<pluginManagement>
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>

<!-- Disable parallel test execution for JUnit 5 -->
<properties>
<configurationParameters>
junit.jupiter.execution.parallel.enabled = false
</configurationParameters>
</properties>

</configuration>
</plugin>

</plugins>
</pluginManagement>
</build>
</profile>
</profiles>

</project>

0 comments on commit 5db949d

Please sign in to comment.