Skip to content

Commit

Permalink
Only enable check plugins if air.check.skip-* is false
Browse files Browse the repository at this point in the history
  • Loading branch information
nineinchnick authored and electrum committed Feb 8, 2022
1 parent 8c40718 commit 4223356
Showing 1 changed file with 154 additions and 45 deletions.
199 changes: 154 additions & 45 deletions airbase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@
</pluginManagement>

<!-- This is the list of plugins used for the main build. -->
<!-- Check plugins (except dependency-plugin) are enabled using profiles. -->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -943,56 +944,11 @@
<artifactId>maven-release-plugin</artifactId>
</plugin>

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

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

<plugin>
<groupId>org.basepom.maven</groupId>
<artifactId>duplicate-finder-maven-plugin</artifactId>
</plugin>

<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
</plugin>

<plugin>
<groupId>com.hubspot.maven.plugins</groupId>
<artifactId>dependency-scope-maven-plugin</artifactId>
</plugin>

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

<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.gaul</groupId>
<artifactId>modernizer-maven-plugin</artifactId>
</plugin>

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

<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
Expand Down Expand Up @@ -1300,6 +1256,159 @@
</dependencyManagement>

<profiles>
<profile>
<id>enforcer-check</id>
<activation>
<property>
<name>air.check.skip-enforcer</name>
<value>false</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>duplicate-finder-check</id>
<activation>
<property>
<name>air.check.skip-duplicate-finder</name>
<value>false</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.basepom.maven</groupId>
<artifactId>duplicate-finder-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>dependency-scope-check</id>
<activation>
<property>
<name>air.check.skip-dependency-scope</name>
<value>false</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.hubspot.maven.plugins</groupId>
<artifactId>dependency-scope-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>spotbugs-check</id>
<activation>
<property>
<name>air.check.skip-spotbugs</name>
<value>false</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>pmd-check</id>
<activation>
<property>
<name>air.check.skip-pmd</name>
<value>false</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>license-check</id>
<activation>
<property>
<name>air.check.skip-license</name>
<value>false</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>jacoco-check</id>
<activation>
<property>
<name>air.check.skip-jacoco</name>
<value>false</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>modernizer-check</id>
<activation>
<property>
<name>air.check.skip-modernizer</name>
<value>false</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.gaul</groupId>
<artifactId>modernizer-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>checkstyle-check</id>
<activation>
<property>
<name>air.check.skip-checkstyle</name>
<value>false</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>oss-release</id>
<properties>
Expand Down

0 comments on commit 4223356

Please sign in to comment.