You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@turbine.apache.org by gk...@apache.org on 2021/06/08 08:17:51 UTC

svn commit: r1890588 - /turbine/maven/turbine-parent/trunk/pom.xml

Author: gk
Date: Tue Jun  8 08:17:51 2021
New Revision: 1890588

URL: http://svn.apache.org/viewvc?rev=1890588&view=rev
Log:
- java 11/12 bug: flag to avoid https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8212233
- java > 11 replace Findbugs with SpotBugs

Modified:
    turbine/maven/turbine-parent/trunk/pom.xml

Modified: turbine/maven/turbine-parent/trunk/pom.xml
URL: http://svn.apache.org/viewvc/turbine/maven/turbine-parent/trunk/pom.xml?rev=1890588&r1=1890587&r2=1890588&view=diff
==============================================================================
--- turbine/maven/turbine-parent/trunk/pom.xml (original)
+++ turbine/maven/turbine-parent/trunk/pom.xml Tue Jun  8 08:17:51 2021
@@ -98,6 +98,7 @@
           <configuration>
             <!-- keep only errors and warnings -->
             <quiet>true</quiet>
+            <source>8</source>
             <encoding>${turbine.encoding}</encoding>
             <docEncoding>${turbine.docEncoding}</docEncoding>
             <notimestamp>true</notimestamp>
@@ -325,14 +326,7 @@
           </reportSet>
         </reportSets>
       </plugin>
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>findbugs-maven-plugin</artifactId>
-        <version>${turbine.findbugs.version}</version>
-        <configuration>
-          <threshold>Normal</threshold>
-        </configuration>
-      </plugin>
+      <!-- findbugs and spotbugs in profiles -->
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-javadoc-plugin</artifactId>
@@ -360,7 +354,7 @@
         <!-- generate the PMD reports -->
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-pmd-plugin</artifactId>
-        <version>3.13.0</version>
+        <version>3.14.0</version>
         <configuration>
           <minimumTokens>200</minimumTokens>
           <!--linkXref>true</linkXref -->
@@ -536,7 +530,7 @@
         </plugins>
       </build>
     </profile>
-    <!-- usng profile to exclude if required, java 12 incompatible -->
+    <!-- using profile to exclude if required, java 12 incompatible -->
     <profile>
       <id>cobertura</id>
       <reporting>
@@ -580,8 +574,41 @@
         <turbine.compiler.compilerVersion>1.12</turbine.compiler.compilerVersion>
         <maven.compiler.release>12</maven.compiler.release>
       </properties>
+      <reporting>
+          <plugins>
+          <plugin>
+                 <groupId>com.github.spotbugs</groupId>
+                  <artifactId>spotbugs-maven-plugin</artifactId>
+                  <version>4.2.0</version>
+                  <configuration>
+                    <dependency>
+                      <groupId>com.github.spotbugs</groupId>
+                      <artifactId>spotbugs</artifactId>
+                      <version>4.2.3</version>
+                    </dependency>
+                  </configuration>
+             </plugin>
+           </plugins>
+      </reporting>
+    </profile>
+    <profile>
+      <id>findbugs-legacy</id>
+      <activation>
+        <jdk>[8,12)</jdk>
+      </activation>
+      <reporting>
+          <plugins>
+              <plugin>   
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>findbugs-maven-plugin</artifactId>
+                <version>${turbine.findbugs.version}</version>
+                <configuration>
+                  <threshold>Normal</threshold>
+                </configuration>
+              </plugin>
+            </plugins>
+      </reporting>
     </profile>
-
   </profiles>
 
   <properties>