Skip to content

Add failOnForbidden to the download goals - #792

Merged
slachiewicz merged 1 commit into
masterfrom
agent/fail-on-forbidden-license
Nov 8, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
agent/fail-on-forbidden-license

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Adds failOnForbidden (default false) to download-licenses and aggregate-download-licenses. When set, the build fails after the summary files are written if a dependency has a license named in forbiddenLicenses, using the existing name-based classifier; no SPDX identifiers or license text are matched, which the issue thread left open.

Closes #323

Verified: mvn -B -ntp verify -Prun-its -Dinvoker.test=download-licenses-failFast → 141 unit tests, 1 IT passed

Fails the build, after the summaries are written, when a dependency declares a license listed in forbiddenLicenses. Closes #323.
@slachiewicz slachiewicz added the enhancement New feature or request label Nov 8, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review November 8, 2026 16:41
@slachiewicz
slachiewicz merged commit 33418f6 into master Nov 8, 2026
15 checks passed
@slachiewicz
slachiewicz deleted the agent/fail-on-forbidden-license branch November 8, 2026 16:42
@github-actions github-actions Bot added this to the 2.8.1 milestone Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blacklisting for download licenses

1 participant