The gradle source will detect dependencies when a build.gradle
file is found along with either gradle
or gradlew
executables being available. The source uses the Gradle-License-Report plugin to enumerate dependencies and locate their licensing information.
An active network connection is required when running the licensed cache
command with the gradle source. Gradle packages generally do not include license text or other legal notices, and additional network requests are needed to find and pull the necessary license content.
The gradle.configurations
property is used to determine which dependencies are fetched to load license information. The default configurations are "runtime"
and "runtimeClassPath"
.
gradle:
configurations:
- runtime
- runtimeClassPath
To run licensed
for specific projects in a multi-build project you must specify the apps configuration key.
apps:
- source_path: ./path/to/subproject
The gradle.gradlew
property is used to determine where the gradlew
executable is. The default location the configuration root.
gradle:
gradlew: path/from/root/to/gradle/gradlew