Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.43 KB

gradle.md

File metadata and controls

34 lines (23 loc) · 1.43 KB

Gradle

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.

Setting dependency configurations to load

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

Multi-build projects

To run licensed for specific projects in a multi-build project you must specify the apps configuration key.

apps:
  - source_path: ./path/to/subproject

Gradlew

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