Skip to content

Commit

Permalink
Add inelegant check in displayLicensesNotAllowed gradle task
Browse files Browse the repository at this point in the history
  • Loading branch information
jreynard-code committed Jun 27, 2023
1 parent 268cc99 commit f48a216
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,11 @@ tasks.register("displayLicensesNotAllowed") {
append(licenseReportDir)
append("/dependencies-without-allowed-license.json")
})
if (notAllowedFile.exists()) {
val dependenciesEmptyResumeTemplate = file(buildString {
append(licenseReportDir)
append("/empty-dependencies-resume.json")
})
if (notAllowedFile.readText() != dependenciesEmptyResumeTemplate.readText()) {
println("Licenses not allowed:")
println(notAllowedFile.readText())
}
Expand Down
5 changes: 5 additions & 0 deletions doc/licenses/empty-dependencies-resume.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependenciesWithoutAllowedLicenses": [

]
}

0 comments on commit f48a216

Please sign in to comment.