You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ki...@apache.org on 2021/12/30 23:17:13 UTC

svn commit: r1896556 - in /xmlbeans/branches/gradle-build: build.gradle samples/Any/ samples/Validation/ samples/XQueryXPath/ samples/XmlSort/ samples/XmlTree/

Author: kiwiwings
Date: Thu Dec 30 23:17:12 2021
New Revision: 1896556

URL: http://svn.apache.org/viewvc?rev=1896556&view=rev
Log:
fix gradle dependsOn

Modified:
    xmlbeans/branches/gradle-build/build.gradle
    xmlbeans/branches/gradle-build/samples/Any/   (props changed)
    xmlbeans/branches/gradle-build/samples/Validation/   (props changed)
    xmlbeans/branches/gradle-build/samples/XQueryXPath/   (props changed)
    xmlbeans/branches/gradle-build/samples/XmlSort/   (props changed)
    xmlbeans/branches/gradle-build/samples/XmlTree/   (props changed)

Modified: xmlbeans/branches/gradle-build/build.gradle
URL: http://svn.apache.org/viewvc/xmlbeans/branches/gradle-build/build.gradle?rev=1896556&r1=1896555&r2=1896556&view=diff
==============================================================================
--- xmlbeans/branches/gradle-build/build.gradle (original)
+++ xmlbeans/branches/gradle-build/build.gradle Thu Dec 30 23:17:12 2021
@@ -36,6 +36,7 @@ plugins {
     id('org.nosphere.apache.rat') version '0.7.0'
     id('de.thetaphi.forbiddenapis') version '3.2'
     id 'jacoco'
+    id 'com.github.spotbugs' version '5.0.3'
 }
 
 // Only add the plugin for Sonar if enabled
@@ -422,6 +423,12 @@ distributions {
                 include 'javaparser*.jar'
                 into 'lib'
             }
+            from(sourcesJar) {
+                into 'lib'
+            }
+            from(javadocJar) {
+                into 'lib'
+            }
             from ('xkit')
             from ('samples') {
                 into 'samples'
@@ -465,18 +472,22 @@ distributions {
     }
 }
 
+[binDistTar, binDistZip]*.dependsOn 'jar'
+[binDistTar, binDistZip]*.dependsOn 'export4anttest'
+[srcDistTar, srcDistZip]*.dependsOn 'cacheJava9'
+
 tasks.withType(Tar) {
     compression = Compression.GZIP
     archiveExtension = 'tgz'
 }
 
 
-//binDistZip.dependsOn ['jar', 'javadocJar', 'sourcesJar']
-
 task jenkins() {
     dependsOn 'check'
     dependsOn 'jacocoTestReport'
     dependsOn 'rat'
+    dependsOn 'spotbugsMain'
+    dependsOn 'spotbugsTest'
     dependsOn 'binDistZip'
     dependsOn 'binDistTar'
     dependsOn 'srcDistZip'
@@ -550,6 +561,39 @@ jacocoTestReport {
     }
 }
 
+spotbugs {
+    ignoreFailures = true
+    showStackTraces = false
+    showProgress = false
+}
+
+spotbugsMain {
+    reports {
+        xml {
+            required = true
+            outputLocation = file("build/reports/spotbugs/main/spotbugs.xml")
+        }
+        html {
+            required = true
+            outputLocation = file("build/reports/spotbugs/main/spotbugs.html")
+            stylesheet = 'fancy-hist.xsl'
+        }
+    }
+}
+
+spotbugsTest {
+    reports {
+        xml {
+            required = true
+            outputLocation = file("build/reports/spotbugs/test/spotbugs.xml")
+        }
+        html {
+            required = true
+            outputLocation = file("build/reports/spotbugs/test/spotbugs.html")
+            stylesheet = 'fancy-hist.xsl'
+        }
+    }
+}
 
 Set<File> xsdDirs(File parent) {
     Set<File> xsdDirs = [] as Set<File>

Propchange: xmlbeans/branches/gradle-build/samples/Any/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Dec 30 23:17:12 2021
@@ -0,0 +1 @@
+build

Propchange: xmlbeans/branches/gradle-build/samples/Validation/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Dec 30 23:17:12 2021
@@ -0,0 +1 @@
+build

Propchange: xmlbeans/branches/gradle-build/samples/XQueryXPath/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Dec 30 23:17:12 2021
@@ -0,0 +1 @@
+build

Propchange: xmlbeans/branches/gradle-build/samples/XmlSort/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Dec 30 23:17:12 2021
@@ -0,0 +1 @@
+build

Propchange: xmlbeans/branches/gradle-build/samples/XmlTree/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Dec 30 23:17:12 2021
@@ -0,0 +1 @@
+build



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org