aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-02-28 14:15:40 +0000
committerPJ Fanning <fanningpj@apache.org>2022-02-28 14:15:40 +0000
commitcd1c603aaa0cd55c8eb7e70410b233919f855a76 (patch)
tree56454b6eaf3430a1e01619fabe45b09dea980fee /build.gradle
parent53300f5c8482655c08bb9e500ed3da27f1178ffb (diff)
downloadpoi-cd1c603aaa0cd55c8eb7e70410b233919f855a76.tar.gz
poi-cd1c603aaa0cd55c8eb7e70410b233919f855a76.zip
add license plugin
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898477 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle27
1 files changed, 27 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 132084ca69..a6b2093166 100644
--- a/build.gradle
+++ b/build.gradle
@@ -40,12 +40,39 @@ plugins {
id('org.nosphere.apache.rat') version '0.7.0'
id 'distribution'
id "com.github.spotbugs" version "4.8.0"
+ id 'com.github.jk1.dependency-license-report' version '2.0'
}
repositories {
mavenCentral()
}
+import com.github.jk1.license.render.*
+import com.github.jk1.license.importer.*
+
+licenseReport {
+
+ // Select projects to examine for dependencies.
+ // Defaults to current project and all its subprojects
+ projects = [project] + project.subprojects
+
+ // Adjust the configurations to fetch dependencies, e.g. for Android projects. Default is 'runtimeClasspath'
+ configurations = ['runtimeClasspath']
+ // Use 'ALL' to dynamically resolve all configurations:
+ // configurations = ALL
+
+ // Don't include artifacts of project's own group into the report
+ excludeOwnGroup = true
+
+ // Don't exclude bom dependencies.
+ // If set to true, then all boms will be excluded from the report
+ excludeBoms = false
+
+ // Set custom report renderer, implementing ReportRenderer.
+ // Yes, you can write your own to support any format necessary.
+ renderers = [new XmlReportRenderer('third-party-libs.xml', 'Back-End Libraries')]
+}
+
// Only add the plugin for Sonar if enabled
if (project.hasProperty('enableSonar')) {
println 'Enabling Sonar support'