From 22906d7eccd7a00320ec48a0593fd550493a7847 Mon Sep 17 00:00:00 2001 From: Ludy87 Date: Mon, 11 Aug 2025 09:35:03 +0200 Subject: [PATCH 1/2] fix --- build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 2c151d11b..92d0043cf 100644 --- a/build.gradle +++ b/build.gradle @@ -215,8 +215,10 @@ tasks.withType(JavaCompile).configureEach { dependsOn "spotlessApply" } +def allProjects = ((subprojects as Set) + project) as Set + licenseReport { - projects = [project] + projects = allProjects renderers = [new JsonReportRenderer()] allowedLicensesFile = project.layout.projectDirectory.file("app/allowed-licenses.json").asFile outputDir = project.layout.buildDirectory.dir("reports/dependency-license").get().asFile.path From 74d13d3e4282a8558e135c0776c2263cdac9344e Mon Sep 17 00:00:00 2001 From: Ludy87 Date: Mon, 11 Aug 2025 10:52:18 +0200 Subject: [PATCH 2/2] fix actions --- .github/workflows/build.yml | 7 +++++-- .github/workflows/licenses-update.yml | 3 +++ build.gradle | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d87e478d3..368087a8c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -173,10 +173,13 @@ jobs: java-version: "17" distribution: "temurin" - - name: check the licenses for compatibility + - name: Check licenses for compatibility run: ./gradlew clean checkLicense + env: + DISABLE_ADDITIONAL_FEATURES: false + STIRLING_PDF_DESKTOP_UI: true - - name: FAILED - check the licenses for compatibility + - name: FAILED - Check licenses for compatibility if: failure() uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: diff --git a/.github/workflows/licenses-update.yml b/.github/workflows/licenses-update.yml index 49486c4d5..74af4e4a4 100644 --- a/.github/workflows/licenses-update.yml +++ b/.github/workflows/licenses-update.yml @@ -58,6 +58,9 @@ jobs: - name: Check licenses for compatibility run: ./gradlew clean checkLicense + env: + DISABLE_ADDITIONAL_FEATURES: false + STIRLING_PDF_DESKTOP_UI: true - name: Upload artifact on failure if: failure() diff --git a/build.gradle b/build.gradle index 92d0043cf..f91d894b7 100644 --- a/build.gradle +++ b/build.gradle @@ -222,6 +222,7 @@ licenseReport { renderers = [new JsonReportRenderer()] allowedLicensesFile = project.layout.projectDirectory.file("app/allowed-licenses.json").asFile outputDir = project.layout.buildDirectory.dir("reports/dependency-license").get().asFile.path + configurations = [ "productionRuntimeClasspath", "runtimeClasspath" ] } sourceSets {