mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-25 13:49:23 +00:00
build(gradle): include all subprojects in license report generation (#4170)
# Description of Changes - Updated `build.gradle` to ensure the `licenseReport` task processes both the root project and all subprojects. - Introduced `allProjects` variable that merges `subprojects` with the current project into a single set. - This change ensures license reporting covers the full multi-module project rather than only the root module. --- ## Checklist ### General - [x] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [x] I have read the [Stirling-PDF Developer Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md) (if applicable) - [ ] I have read the [How to add new languages to Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md) (if applicable) - [x] I have performed a self-review of my own code - [x] My changes generate no new warnings ### Documentation - [ ] I have updated relevant docs on [Stirling-PDF's doc repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/) (if functionality has heavily changed) - [ ] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only) ### UI Changes (if applicable) - [ ] Screenshots or videos demonstrating the UI changes are attached (e.g., as comments or direct attachments in the PR) ### Testing (if applicable) - [ ] I have tested my changes locally. Refer to the [Testing Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md#6-testing) for more details.
This commit is contained in:
parent
930fcf01bf
commit
97132c28a4
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@ -175,10 +175,13 @@ jobs:
|
|||||||
java-version: "17"
|
java-version: "17"
|
||||||
distribution: "temurin"
|
distribution: "temurin"
|
||||||
|
|
||||||
- name: check the licenses for compatibility
|
- name: Check licenses for compatibility
|
||||||
run: ./gradlew clean checkLicense
|
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()
|
if: failure()
|
||||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||||
with:
|
with:
|
||||||
|
3
.github/workflows/licenses-update.yml
vendored
3
.github/workflows/licenses-update.yml
vendored
@ -58,6 +58,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Check licenses for compatibility
|
- name: Check licenses for compatibility
|
||||||
run: ./gradlew clean checkLicense
|
run: ./gradlew clean checkLicense
|
||||||
|
env:
|
||||||
|
DISABLE_ADDITIONAL_FEATURES: false
|
||||||
|
STIRLING_PDF_DESKTOP_UI: true
|
||||||
|
|
||||||
- name: Upload artifact on failure
|
- name: Upload artifact on failure
|
||||||
if: failure()
|
if: failure()
|
||||||
|
@ -222,11 +222,14 @@ tasks.withType(JavaCompile).configureEach {
|
|||||||
dependsOn "spotlessApply"
|
dependsOn "spotlessApply"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def allProjects = ((subprojects as Set<Project>) + project) as Set<Project>
|
||||||
|
|
||||||
licenseReport {
|
licenseReport {
|
||||||
projects = [project]
|
projects = allProjects
|
||||||
renderers = [new JsonReportRenderer()]
|
renderers = [new JsonReportRenderer()]
|
||||||
allowedLicensesFile = project.layout.projectDirectory.file("app/allowed-licenses.json").asFile
|
allowedLicensesFile = project.layout.projectDirectory.file("app/allowed-licenses.json").asFile
|
||||||
outputDir = project.layout.buildDirectory.dir("reports/dependency-license").get().asFile.path
|
outputDir = project.layout.buildDirectory.dir("reports/dependency-license").get().asFile.path
|
||||||
|
configurations = [ "productionRuntimeClasspath", "runtimeClasspath" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure the forked spring boot run task to properly delegate to the stirling-pdf module
|
// Configure the forked spring boot run task to properly delegate to the stirling-pdf module
|
||||||
|
Loading…
x
Reference in New Issue
Block a user