}
}
+plugins {
+ id("org.nosphere.apache.rat") version "0.7.0"
+}
+
repositories {
mavenCentral()
}
}
}
}
-}
\ 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)
+}