Third party licenses and libraries used #62

Closed
opened 2026-06-26 10:51:58 +02:00 by Griefed · 1 comment
Owner

@Griefed on GitLab · https://git.griefed.de/Griefed/ServerPackCreator/-/issues/224

Improve documentation of third party libraries used, with their licenses, and where the source code can be found at

<!-- repoman:origin --> > **@Griefed** on **GitLab** · https://git.griefed.de/Griefed/ServerPackCreator/-/issues/224 Improve documentation of third party libraries used, with their licenses, and where the source code can be found at
Author
Owner

@Griefed on GitLab

Solved with the com.github.jk1.dependency-license-report Gradle plugin and the configuration:

licenseReport {
  // Set output directory for the report data.
  // Defaults to ${project.buildDir}/reports/dependency-license.
  outputDir = "$projectDir/licenses"

  // Select projects to examine for dependencies.
  // Defaults to current project and all its subprojects
  projects = [project] + project.subprojects

  // Adjust the configurations to fetch dependencies. Default is 'runtimeClasspath'
  // For Android projects use 'releaseRuntimeClasspath' or 'yourFlavorNameReleaseRuntimeClasspath'
  // Use 'ALL' to dynamically resolve all configurations:
  // configurations = ALL
  configurations = ['runtimeClasspath']

  // Don't include artifacts of project's own group into the report
  excludeOwnGroup = false

  // Don't exclude bom dependencies.
  // If set to true, then all boms will be excluded from the report
  excludeBoms = true

  filters = [new ExcludeTransitiveDependenciesFilter(),new LicenseBundleNormalizer()]

  // Set custom report renderer, implementing ReportRenderer.
  // Yes, you can write your own to support any format necessary.
  renderers = [new InventoryHtmlReportRenderer('index.html', 'Dependency Licences'), new InventoryMarkdownReportRenderer("licences.md","Licenses")]
}

<!-- repoman:origin --> > **@Griefed** on **GitLab** Solved with the `com.github.jk1.dependency-license-report` Gradle plugin and the configuration: ```groovy licenseReport { // Set output directory for the report data. // Defaults to ${project.buildDir}/reports/dependency-license. outputDir = "$projectDir/licenses" // Select projects to examine for dependencies. // Defaults to current project and all its subprojects projects = [project] + project.subprojects // Adjust the configurations to fetch dependencies. Default is 'runtimeClasspath' // For Android projects use 'releaseRuntimeClasspath' or 'yourFlavorNameReleaseRuntimeClasspath' // Use 'ALL' to dynamically resolve all configurations: // configurations = ALL configurations = ['runtimeClasspath'] // Don't include artifacts of project's own group into the report excludeOwnGroup = false // Don't exclude bom dependencies. // If set to true, then all boms will be excluded from the report excludeBoms = true filters = [new ExcludeTransitiveDependenciesFilter(),new LicenseBundleNormalizer()] // Set custom report renderer, implementing ReportRenderer. // Yes, you can write your own to support any format necessary. renderers = [new InventoryHtmlReportRenderer('index.html', 'Dependency Licences'), new InventoryMarkdownReportRenderer("licences.md","Licenses")] } ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Griefed/ServerPackCreator#62
No description provided.