Rules for declaring the compliance licenses used by a package.
license(<a href="#license-name">name</a>, <a href="#license-copyright_notice">copyright_notice</a>, <a href="#license-license_kinds">license_kinds</a>, <a href="#license-license_text">license_text</a>, <a href="#license-package_name">package_name</a>, <a href="#license-package_url">package_url</a>, <a href="#license-package_version">package_version</a>)
ATTRIBUTES
Proof of concept. License restriction.
license_kind(<a href="#license_kind-name">name</a>, <a href="#license_kind-canonical_text">canonical_text</a>, <a href="#license_kind-conditions">conditions</a>, <a href="#license_kind-long_name">long_name</a>, <a href="#license_kind-url">url</a>)
ATTRIBUTES
Rules for declaring metadata about a package.
package_info(<a href="#package_info-name">name</a>, <a href="#package_info-package_name">package_name</a>, <a href="#package_info-package_url">package_url</a>, <a href="#package_info-package_version">package_version</a>)
ATTRIBUTES
Basic providers for license rules.
This file should only contain the basic providers needed to create license and package_info declarations. Providers needed to gather them are declared in other places.
LicenseInfo(<a href="#LicenseInfo-copyright_notice">copyright_notice</a>, <a href="#LicenseInfo-label">label</a>, <a href="#LicenseInfo-license_kinds">license_kinds</a>, <a href="#LicenseInfo-license_text">license_text</a>, <a href="#LicenseInfo-package_name">package_name</a>, <a href="#LicenseInfo-package_url">package_url</a>, <a href="#LicenseInfo-package_version">package_version</a>)
Provides information about a license instance.
FIELDS
Basic providers for license rules.
This file should only contain the basic providers needed to create license and package_info declarations. Providers needed to gather them are declared in other places.
LicenseKindInfo(<a href="#LicenseKindInfo-conditions">conditions</a>, <a href="#LicenseKindInfo-label">label</a>, <a href="#LicenseKindInfo-long_name">long_name</a>, <a href="#LicenseKindInfo-name">name</a>)
Provides information about a license_kind instance.
FIELDS
Basic providers for license rules.
This file should only contain the basic providers needed to create license and package_info declarations. Providers needed to gather them are declared in other places.
PackageInfo(<a href="#PackageInfo-type">type</a>, <a href="#PackageInfo-label">label</a>, <a href="#PackageInfo-package_name">package_name</a>, <a href="#PackageInfo-package_url">package_url</a>, <a href="#PackageInfo-package_version">package_version</a>)
Provides information about a package.
FIELDS
Rules and macros for collecting LicenseInfo providers.
gather_metadata_info(<a href="#gather_metadata_info-name">name</a>)
Collects LicenseInfo providers into a single TransitiveMetadataInfo provider.
ASPECT ATTRIBUTES
| Name | Type |
|---|---|
| * | String |
ATTRIBUTES
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required |
Rules and macros for collecting LicenseInfo providers.
gather_metadata_info_and_write(<a href="#gather_metadata_info_and_write-name">name</a>)
Collects TransitiveMetadataInfo providers and writes JSON representation to a file.
Usage:
bazel build //some:target --aspects=@rules_license//rules_gathering:gather_metadata.bzl%gather_metadata_info_and_write
--output_groups=licenses
ASPECT ATTRIBUTES
| Name | Type |
|---|---|
| * | String |
ATTRIBUTES
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required |
Rules and macros for collecting package metdata providers.
trace(<a href="#trace-name">name</a>)
Used to allow the specification of a target to trace while collecting license dependencies.
ATTRIBUTES
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required |