Skip to content

Commit

Permalink
Adds profile for sealed class tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jqno committed Jan 4, 2022
1 parent 1bb1967 commit 2555f49
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,50 @@
</build>
</profile>

<profile>
<id>enables-sealed-class-tests-for-jdk17-and-up</id>
<activation>
<jdk>[17,)</jdk>
</activation>

<properties>
<coverage.threshold>0.97</coverage.threshold>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<testRelease>17</testRelease>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build-helper-maven-plugin.version}</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>src/test/java11</source>
<source>src/test/java16</source>
<source>src/test/java17</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>static-analysis</id>
<activation>
Expand Down

0 comments on commit 2555f49

Please sign in to comment.