unusedAction

abstract fun unusedAction(level: UnusedAction)

Build behavior when a declared license is not found in any dependencies of the project.

This is intended for the case where you have a restricted list of allowed licenses for your organisation, so you can simply list them all in the Licensee config block and not have to fish through unnecessary warnings in your Gradle logs.

licensee {
unusedAction(IGNORE)
}

The default behavior is to warn.

Note: Setting this to ignore does not affect the contents of the validation.txt file which always contains all artifacts and their validation status.

See also