Sha256: 1de0f9c9bc9aea7f4beb74373e61fcc274be481bb9aa3f217a17794df097df1c

Contents?: true

Size: 1.8 KB

Versions: 10

Compression:

Stored size: 1.8 KB

Contents

# Additional terms

The `additional_terms` configuration option is used to specify paths to files containing extra licensing terms that do not ship with the dependency package. All files specified are expected to be plain text.

Files containing additional content can be located anywhere on disk that is accessible to licensed.  File paths can be specified as a string or array and can contain glob values to simplify configuration inputs.  All file paths are evaluated from the [configuration root](./configuration_root.md).

## Examples

**Note** The examples below specify paths to additional files under the `.licenses` folder.  This is a logical place to store files containing license terms, but be careful not to store files under paths managed by licensed like `.licenses/<source type>/...`.  Running `licensed cache` in the future will delete any files under licensed managed paths that licensed did not create.  This is why the below examples use paths like `.licenses/amendments/bundler/...` instead of not `.licenses/bundler/amendments/...`.

### With a string

```yaml
additional_terms:
  # specify the type of dependency
  bundler:
    # specify the dependency name and path to an additional file
    <gem-name>: .licenses/amendments/bundler/<gem-name>/terms.txt
```

### With a glob string

```yaml
additional_terms:
  # specify the type of dependency
  bundler:
    # specify the dependency name and one or more additional files with a glob pattern
    <gem-name>: .licenses/amendments/bundler/<gem-name>/*.txt
```

### With an array of strings

```yaml
additional_terms:
  # specify the type of dependency
  bundler:
    # specify the dependency name and array of paths to additional files
    <gem-name>:
      - .licenses/amendments/bundler/<gem-name>/terms-1.txt
      - .licenses/amendments/bundler/<gem-name>/terms-2.txt
```

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
licensed-5.0.3 docs/configuration/additional_terms.md
licensed-5.0.2 docs/configuration/additional_terms.md
licensed-5.0.1 docs/configuration/additional_terms.md
licensed-5.0.0 docs/configuration/additional_terms.md
licensed-4.5.0 docs/configuration/additional_terms.md
licensed-4.4.0 docs/configuration/additional_terms.md
licensed-4.3.1 docs/configuration/additional_terms.md
licensed-4.3.0 docs/configuration/additional_terms.md
licensed-4.2.0 docs/configuration/additional_terms.md
licensed-4.1.0 docs/configuration/additional_terms.md