1
0

add dependency license compatibility check

This commit is contained in:
Michael Hoennig
2022-08-08 10:03:26 +02:00
parent 86128f5994
commit c4531cb217
3 changed files with 70 additions and 1 deletions

View File

@ -2,6 +2,7 @@ plugins {
id 'java'
id 'org.springframework.boot' version '2.7.2'
id 'io.spring.dependency-management' version '1.0.12.RELEASE'
id 'com.github.jk1.dependency-license-report' version '2.1'
id "org.owasp.dependencycheck" version "7.1.1"
id "com.diffplug.spotless" version "6.9.0"
}
@ -91,3 +92,9 @@ dependencyCheck {
failBuildOnCVSS = 7
}
project.tasks.check.dependsOn(dependencyCheckAnalyze)
licenseReport {
excludeBoms = true
allowedLicensesFile = new File("$projectDir/etc/allowed-licenses.json")
}
project.tasks.check.dependsOn(checkLicense)