]> source.dussan.org Git - poi.git/commitdiff
add spotbugs to gradle build
authorAndreas Beeker <kiwiwings@apache.org>
Wed, 25 Aug 2021 23:07:06 +0000 (23:07 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Wed, 25 Aug 2021 23:07:06 +0000 (23:07 +0000)
update dist path for jenkins archives

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1892607 13f79535-47bb-0310-9956-ffa450edef68

build.gradle
jenkins/create_jobs.groovy
poi-ooxml-full/build.gradle

index 9b4f42e3b12a3a9505cdb17a3ce483856c84a05e..1522a046378ffa6e516fdfd3ebf88d2147417b22 100644 (file)
@@ -24,6 +24,7 @@ buildscript {
     dependencies {
         classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.1.1'
         classpath 'de.thetaphi:forbiddenapis:3.1'
+        classpath 'gradle.plugin.com.github.spotbugs.snom:spotbugs-gradle-plugin:4.7.3'
     }
 }
 
@@ -98,6 +99,7 @@ subprojects {
     apply plugin: 'maven-publish'
     apply plugin: 'signing'
     apply plugin: 'de.thetaphi.forbiddenapis'
+    apply plugin: 'com.github.spotbugs'
 
     version = '5.0.1-SNAPSHOT'
     ext {
@@ -391,6 +393,10 @@ subprojects {
     signing {
         sign publishing.publications.POI
     }
+
+    spotbugs {
+        ignoreFailures = true
+    }
 }
 
 // initial try to provide a combined JavaDoc, grouping is still missing here, though!
index 61770bf7024d6ef35c0844a6bb714f9b251afbe4..a81f09eb05461c0f052fd6177d607ff3e8b78631 100644 (file)
@@ -484,7 +484,7 @@ poijobs.each { poijob ->
                     }
                 }
                 // in archive, junit and jacoco publishers, matches beneath build/*/build/... are for Gradle-build results
-                archiveArtifacts('build/dist/*.tar.gz,build/findbugs.html,build/coverage/**,poi-integration/build/test-results/**,*/build/libs/*.jar')
+                archiveArtifacts('build/dist/*.tgz,build/dist/maven/*/*.jar,build/coverage/**')
                 warnings(['Java Compiler (javac)', 'JavaDoc Tool'], null) {
                     resolveRelativePaths()
                 }
index c723b0e8e91dff83ef21d7a4a0da0f73a9e434b8..200b99b6e9a2092f985a37054f6309d6f2b4ed19 100644 (file)
@@ -161,3 +161,6 @@ publishing {
         }
     }
 }
+
+spotbugsTest.enabled = false
+spotbugsMain.enabled = false
\ No newline at end of file