Add new global attribute: applicable_licenses
- Package level default with default_applicable_licenses
- guarded by --incompatible_applicable_licenses (default true for Blaze, false for Bazel)

Import features:
- applicable_licenses is not configurable. Software does not get a different
  license in different environments. The license it is provided under dictates
  what type of environments you may use it in.
- applicable_licenses is exempt from compatible_with checks. For the same
  reason.

Since there is currently no actual behavior within Bazel, the test cases
are located with @rules_license. In the future, we will add provider
checking to applicable_licenses. (b/148601291), at which point there
must be positive and negative tests alongside the Bazel code.

RELNOTES:
Add new global attribute: applicable_licenses
- Package level default with default_applicable_licenses
- guarded by --incompatible_applicable_licenses (default true for Blaze, false for Bazel)
- In support of https://docs.google.com/document/d/1uwBuhAoBNrw8tmFs-NxlssI6VRolidGYdYqagLqHWt8/edit#
PiperOrigin-RevId: 296042678
5 files changed
tree: 103af69466c0bac6ce7380304bfce08d9adf5afe
  1. .bazelci/
  2. .bazelrc
  3. .gitattributes
  4. .gitignore
  5. AUTHORS
  6. BUILD
  7. CHANGELOG.md
  8. CODEOWNERS
  9. CONTRIBUTING.md
  10. CONTRIBUTORS
  11. ISSUE_TEMPLATE.md
  12. LICENSE
  13. README.md
  14. WORKSPACE
  15. combine_distfiles.py
  16. combine_distfiles_to_tar.sh
  17. compile.sh
  18. distdir.bzl
  19. examples/
  20. scripts/
  21. site/
  22. src/
  23. third_party/
  24. tools/
README.md

Bazel

{Fast, Correct} - Choose two

Build and test software of any size, quickly and reliably.

  • Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.

  • One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.

  • Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.

  • Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.

Getting Started

Documentation

Contributing to Bazel

See CONTRIBUTING.md

Build status