diff options
author | Dominik Stadler <centic@apache.org> | 2021-03-28 19:54:57 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2021-03-28 19:54:57 +0000 |
commit | 22b39898c33fdaf22c6f01c550c7349c5912f21a (patch) | |
tree | 1141fc62528c617073616da785e0f9700c7a3d3e /build.gradle | |
parent | 6dd39585d5575c35f7cdc70a1f2cbd1453d134c3 (diff) | |
download | poi-22b39898c33fdaf22c6f01c550c7349c5912f21a.tar.gz poi-22b39898c33fdaf22c6f01c550c7349c5912f21a.zip |
Gradle: Add support for rat-check and initial target "jenkins"
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888139 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 56 |
1 files changed, 55 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle index b9327fcf23..3545352b61 100644 --- a/build.gradle +++ b/build.gradle @@ -24,6 +24,10 @@ buildscript { } } +plugins { + id("org.nosphere.apache.rat") version "0.7.0" +} + repositories { mavenCentral() } @@ -198,4 +202,54 @@ subprojects { } } } -}
\ No newline at end of file + + task jenkins + jenkins.dependsOn build + jenkins.dependsOn check + jenkins.dependsOn javadoc + jenkins.dependsOn jacocoTestReport + jenkins.dependsOn rat +} + +rat { + // Input directory, defaults to '.' + inputDir.set(file(".")) + + // include all directories which contain files that are included in releases + includes.add("examples/**") + includes.add("excelant/**") + includes.add("integrationtest/**") + includes.add("legal/**") + includes.add("main/**") + includes.add("maven/**") + includes.add("ooxml/**") + includes.add("ooxml-schema/**") + //includes.add("osgi/**") + includes.add("scratchpad/**") + includes.add("src/**") + //includes.add("sonar/**") + includes.add("build.*") + + // List of Gradle exclude directives, defaults to ['**/.gradle/**'] + //excludes.add("main/java/org/apache/poi/**/*-chart-data.txt") + excludes.add("**/build/**") + excludes.add("**/out/**") + excludes.add("**/*.iml") + excludes.add("**/*.log") + excludes.add("**/main/java/org/apache/poi/**/*-chart-data.txt") + excludes.add("main/src/main/resources/org/apache/poi/sl/draw/geom/presetShapeDefinitions.xml") + excludes.add("ooxml/src/main/resources/org/apache/poi/xslf/usermodel/notesMaster.xml") + excludes.add("ooxml/src/main/resources/org/apache/poi/xssf/usermodel/presetTableStyles.xml") + excludes.add("ooxml-schema/src/main/xmlschema/org/apache/poi/schemas/XAdES*.xsd") + excludes.add("ooxml-schema/src/main/xmlschema/org/apache/poi/schemas/xmldsig-core-schema.xsd") + excludes.add("ooxml-schema/src/main/xmlschema/org/apache/poi/xdgf/visio.xsd") + /* + <exclude name="documentation/*.txt" /> + <exclude name="documentation/content/xdocs/dtd/" /> + <exclude name="documentation/content/xdocs/entity/" /> + <exclude name="documentation/resources/images/pb-poi.cdr"/> + */ + + // Prints the list of files with unapproved licences to the console, defaults to false + verbose.set(true) +} |