Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auflistung der Dependencies samt Lizenz #1487

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,8 @@ replay_pid*
*.zip
*.tgz
*.tar.gz

# Licences #
############
licenses/
!licenses/third-party-libs.md
tgrothe marked this conversation as resolved.
Show resolved Hide resolved
38 changes: 38 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ buildscript {

plugins {
id 'com.diffplug.spotless' version "${spotlessVersion}"
id 'com.github.jk1.dependency-license-report' version "${licenseReportVersion}"
}


Expand Down Expand Up @@ -45,3 +46,40 @@ spotless {
target '**/*.java'
}
}


import com.github.jk1.license.render.*

licenseReport {
// By default this plugin will collect the union of all licenses from
// the immediate pom and the parent poms. If your legal team thinks this
// is too liberal, you can restrict collected licenses to only include the
// those found in the immediate pom file
// Defaults to: true
unionParentPomLicenses = false

// 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 = 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 InventoryMarkdownReportRenderer('third-party-libs.md', 'Back-End Libraries')]
}
1 change: 1 addition & 0 deletions dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ext {
// -- PLUGINS
spotlessVersion = '6.25.0'
licenseReportVersion = '2.6'

// -- DEPENDENCIES
gdxVersion = '1.12.1'
Expand Down