Sha256: 39f6b7e743806d1a00d8d9e4a3bf22dc714b6797c1a859bee558e61b5a19aa04

Contents?: true

Size: 1.43 KB

Versions: 10

Compression:

Stored size: 1.43 KB

Contents

# 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](https://github.com/jk1/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"`.

```yml
gradle:
  configurations:
    - runtime
    - runtimeClassPath
```

### Multi-build projects

To run `licensed` for specific projects in a [multi-build project](https://docs.gradle.org/current/userguide/multi_project_builds.html) you must specify the [apps](../configuration/application_source.md) configuration key.

```yml
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](../configuration/configuration_root.md).

```yml
gradle:
  gradlew: path/from/root/to/gradle/gradlew
```

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
licensed-5.0.0 docs/sources/gradle.md
licensed-4.5.0 docs/sources/gradle.md
licensed-4.4.0 docs/sources/gradle.md
licensed-4.3.1 docs/sources/gradle.md
licensed-4.3.0 docs/sources/gradle.md
licensed-4.2.0 docs/sources/gradle.md
licensed-4.1.0 docs/sources/gradle.md
licensed-4.0.4 docs/sources/gradle.md
licensed-4.0.3 docs/sources/gradle.md
licensed-4.0.2 docs/sources/gradle.md