fleetlint Policy for a fleet of repositories
v0.4
Getting started

deps/license-check/java

Dependency licenses are checked against an allowlist

Implements deps/license-check for java.

Severityinfo
Tiers1
Stacksjava
Scopeeach
Kindoutcome
Sourcelibrary v0.1.0
Selected byfleetlint-recommended@v0.1.0

Requirement

pom.xml configures license-maven-plugin to fail on licenses outside its list (failOnBlacklist/failOnNotWhitelisted), or the Gradle dependency-license-report plugin has an allowedLicensesFile and its checkLicense task runs (from a recipe, a CI step or a task dependency); or a stack-neutral license checker runs.

Why

A dependency under an incompatible license is found cheaply before it is merged and expensively after a release.

Parameters

  • runners: [../Makefile ../justfile ../Justfile ../Taskfile.yml ../Taskfile.yaml ../../Makefile ../../justfile ../../Justfile ../../Taskfile.yml ../../Taskfile.yaml ../../../Makefile ../../../justfile ../../../Justfile ../../../Taskfile.yml ../../../Taskfile.yaml]
  • skip: ^\s*[@+-]*\s*(\{\{[^}]*\}\}\s*|\$[({][A-Za-z_]+[)}]\s*)?(#|//|echo\b|printf\b|(sudo\s+)?(go (install|get)|cargo b?install|pipx? install|pip3 install|python3? -m pip install|uv (tool |pip )?(install|add)|(npm|pnpm|yarn|bun) (i|install|add|global add)|gem install|bundle add|brew install|dotnet tool (install|update)|composer (global )?require|apt(-get)? install|curl|wget)\b[^;&]*$)

Fix

Gradle: add com.github.jk1.dependency-license-report with allowedLicensesFile and run checkLicense in audit; Maven: configure license-maven-plugin with an included-licenses list and failOnBlacklist.

Agent instruction: Add the stack’s license checker to the audit target with an allowlist compatible with the repository’s own license; report dependencies outside it instead of widening the list.

See: https://fleetlint.org/baseline/#dependencies, https://fleetlint.org/stacks/#java


Generated by fleetlint docs from catalog v0.1.0.