Author: fanningpj
Date: Mon Feb 28 14:15:40 2022
New Revision: 1898477
URL: http://svn.apache.org/viewvc?rev=1898477&view=rev
Log:
add license plugin
Modified:
poi/trunk/build.gradle
Modified: poi/trunk/build.gradle
URL:
http://svn.apache.org/viewvc/poi/trunk/build.gradle?rev=1898477&r1=1898476&r2=1898477&view=diff
==============================================================================
--- poi/trunk/build.gradle (original)
+++ poi/trunk/build.gradle Mon Feb 28 14:15:40 2022
@@ -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'
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]