maven ( POM.xml)
- run task site,
- files are generated in
- target/site/dependencies.html
- target/site/project-info.html
<Project>
<reporting>
<plugins>
<plugin> <!-- This plugin needs site plugin" -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.4.3</version>
<reportSets>
<reportSet>
<reports>
<report>dependencies</report>
<report>licenses</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
...
gradle (build.gradle)
- run task : generateLicenseReport
- file generated in
- build/licenses/index.html
- build/licenses.csv
- build/index.xml
import com.github.jk1.license.render.*
//import com.github.jk1.license.importer.*
plugins {
id 'java'
id 'org.springframework.boot' version '3.0.6'
id 'io.spring.dependency-management' version '1.1.0'
id 'project-report'
id 'com.github.jk1.dependency-license-report' version '2.1'
}
// ref : https://github.com/jk1/Gradle-License-Report
// run generateLicenseReport
licenseReport {
outputDir = "$projectDir/build/licenses"
renderers = [new InventoryHtmlReportRenderer(),new XmlReportRenderer(), new CsvReportRenderer()]
}