Skip to content

Releases: bazelbuild/rules_license

1.0.0

05 Sep 13:18
f85e7d6
Compare
Choose a tag to compare

New Features

  • add purl to package_info
  • minor bug fixes

MODULE.bazel setup

bazel_dep(name = "rules_license", version = "1.0.0")

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_license",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/1.0.0/rules_license-1.0.0.tar.gz",
        "https://github.com/bazelbuild/rules_license/releases/download/1.0.0/rules_license-1.0.0.tar.gz",
    ],
    sha256 = "26d4021f6898e23b82ef953078389dd49ac2b5618ac564ade4ef87cced147b38",
)

Thanks to
Chris Brown, Fabian Meumertzheim, Mai Hussien, Simon Mavi Stewart, peakschris

0.0.8

24 Jan 10:42
Compare
Choose a tag to compare

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_license",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.8/rules_license-0.0.8.tar.gz",
        "https://github.com/bazelbuild/rules_license/releases/download/0.0.8/rules_license-0.0.8.tar.gz",
    ],
    sha256 = "241b06f3097fd186ff468832150d6cc142247dc42a32aaefb56d0099895fd229",
)

What's Changed

New Contributors

Full Changelog: 0.0.7...0.0.8

0.0.7

16 Jun 21:28
e160ce5
Compare
Choose a tag to compare

New Features

  • package_info(). package_info is the preferred way to specify package version and url.

Incompatible Changes

  • Large refactoring to clean up the rules (#85). Forwarders for moves code was left, but some may have been missed. They will certainly be removed before the 0.1.0 release.

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_license",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.7/rules_license-0.0.7.tar.gz",
        "https://github.com/bazelbuild/rules_license/releases/download/0.0.7/rules_license-0.0.7.tar.gz",
    ],
    sha256 = "4531deccb913639c30e5c7512a054d5d875698daeb75d8cf90f284375fe7c360",
)

0.0.6

16 Jun 15:36
acee901
Compare
Choose a tag to compare

This release is broken. Do not use it.

0.0.4

02 Nov 14:49
e3bdc54
Compare
Choose a tag to compare

This release that pulls forward a lot of Google internal work from the past year. It still keeps metadata like the package version in the license rule. That will be moved to package_info rules in an upcoming releases. For now, this one should be API compatible with 0.0.3.

New Features

  • broader dependency traversal
  • more useful output from gather_licenses_info

Incompatible Changes

  • JSON output from gather_licenses_info is changed completely. This is still subject to change so the best documentation for the format is in the code that consumes it.

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_license",
    urls = [
        "https://github.com/bazelbuild/rules_license/releases/download/0.0.4/rules_license-0.0.4.tar.gz",
        "https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.4/rules_license-0.0.4.tar.gz",
    ],
    sha256 = "6157e1e68378532d0241ecd15d3c45f6e5cfd98fc10846045509fb2a7cc9e381",
)

Using the rules

See the source.

0.0.3

28 May 03:59
21fcdc4
Compare
Choose a tag to compare

New Features
Added legacy generic license targets.

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_license",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.3/rules_license-0.0.3.tar.gz",
        "https://github.com/bazelbuild/rules_license/releases/download/0.0.3/rules_license-0.0.3.tar.gz",
    ],
    sha256 = "00ccc0df21312c127ac4b12880ab0f9a26c1cff99442dc6c5a331750360de3c3",
)

Using the rules

See the source.

0.0.2

17 May 00:08
add8ef9
Compare
Choose a tag to compare

New Features

This release just publishes the core providers, sample code, and an SPDX license list.

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_license",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.2/rules_license-0.0.2.tar.gz",
        "https://github.com/bazelbuild/rules_license/releases/download/0.0.2/rules_license-0.0.2.tar.gz",
    ],
    sha256 = "a5edffc810c74e32a9a7ef5f9591bc05d1362b244b9e22323f38cbbbaba41281",
)

Using the rules

See the source.