1# Copyright 2022 The Bazel Authors. All rights reserved. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15workspace(name = "rules_license") 16 17# rules_license has no dependencies for basic license and package_info 18# declarations. 19# 20# If you want to use any of the reporting or SBOM tools, and you are using a 21# WORKSPACE file instead of bzlmod, then you should explicitly depend on 22# rules_python in your WORKSPACE. 23 24### INTERNAL ONLY - lines after this are not included in the release packaging. 25 26load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") 27 28http_archive( 29 name = "bazel_skylib", 30 sha256 = "bc283cdfcd526a52c3201279cda4bc298652efa898b10b4db0837dc51652756f", 31 urls = [ 32 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz", 33 "https://github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz", 34 ], 35) 36 37http_archive( 38 name = "rules_python", 39 sha256 = "be04b635c7be4604be1ef20542e9870af3c49778ce841ee2d92fcb42f9d9516a", 40 strip_prefix = "rules_python-0.35.0", 41 url = "https://github.com/bazelbuild/rules_python/releases/download/0.35.0/rules_python-0.35.0.tar.gz", 42) 43 44http_archive( 45 name = "rules_pkg", 46 urls = [ 47 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/1.0.1/rules_pkg-1.0.1.tar.gz", 48 "https://github.com/bazelbuild/rules_pkg/releases/download/1.0.1/rules_pkg-1.0.1.tar.gz", 49 ], 50 sha256 = "d20c951960ed77cb7b341c2a59488534e494d5ad1d30c4818c736d57772a9fef", 51) 52 53http_archive( 54 name = "bazel_stardoc", 55 sha256 = "c9794dcc8026a30ff67cf7cf91ebe245ca294b20b071845d12c192afe243ad72", 56 urls = [ 57 "https://mirror.bazel.build/github.com/bazelbuild/stardoc/releases/download/0.5.0/stardoc-0.5.0.tar.gz", 58 "https://github.com/bazelbuild/stardoc/releases/download/0.5.0/stardoc-0.5.0.tar.gz", 59 ], 60) 61 62load("@rules_python//python:repositories.bzl", "py_repositories") 63 64py_repositories() 65 66load("@bazel_stardoc//:setup.bzl", "stardoc_repositories") 67 68stardoc_repositories() 69