Skip to content

Commit

Permalink
Merge pull request #113 from jenkinsci/jmh
Browse files Browse the repository at this point in the history
Exclude generated JMH tests during static analysis
  • Loading branch information
uhafner authored Aug 24, 2020
2 parents 0737359 + 9cbe677 commit 91fdf55
Showing 1 changed file with 27 additions and 26 deletions.
53 changes: 27 additions & 26 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@
<testTarget>${java.level}</testTarget>
<compilerArgs>
<arg>-Xlint:all</arg>
<arg>-XepExcludedPaths:.*/generated-test-sources/.*</arg>
</compilerArgs>
</configuration>
</plugin>
Expand Down Expand Up @@ -333,7 +332,7 @@
<failOnViolation>false</failOnViolation>
<configLocation>checkstyle-configuration.xml</configLocation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<excludes>**/*Assert*.java,**/InjectedTest.java,**/Messages.java</excludes>
<excludes>**/*Assert*.java,**/InjectedTest.java,**/Messages.java,**/*_jmh*</excludes>
</configuration>
<dependencies>
<dependency>
Expand Down Expand Up @@ -370,6 +369,7 @@
</rulesets>
<excludeRoots>
<excludeRoot>target/generated-sources/localizer</excludeRoot>
<excludeRoot>target/generated-test-sources/test-annotations</excludeRoot>
<excludeRoot>target/generated-test-sources/assertj-assertions</excludeRoot>
</excludeRoots>
<excludes>
Expand Down Expand Up @@ -440,6 +440,31 @@
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
<configuration>
<includes>
<include>io/jenkins/plugins/**/*</include>
</includes>
</configuration>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
<phase>process-test-classes</phase>
</execution>
<execution>
<id>report</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
Expand Down Expand Up @@ -556,30 +581,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
<configuration>
<includes>
<include>io/jenkins/plugins/**/*</include>
</includes>
</configuration>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
Expand Down

0 comments on commit 91fdf55

Please sign in to comment.