|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +workspace(name = "typedb-examples") |
| 19 | + |
| 20 | +################################ |
| 21 | +# Load @typedb_dependencies # |
| 22 | +################################ |
| 23 | + |
| 24 | +load("//dependencies/typedb:repositories.bzl", "typedb_dependencies") |
| 25 | +typedb_dependencies() |
| 26 | + |
| 27 | +# Load //builder/python |
| 28 | +load("@typedb_dependencies//builder/python:deps.bzl", "rules_python") |
| 29 | +rules_python() |
| 30 | +load("@rules_python//python:repositories.bzl", "py_repositories") |
| 31 | +py_repositories() |
| 32 | + |
| 33 | +# Load //builder/bazel for RBE |
| 34 | +load("@typedb_dependencies//builder/bazel:deps.bzl", "bazel_toolchain") |
| 35 | +bazel_toolchain() |
| 36 | + |
| 37 | +# Load //builder/kotlin |
| 38 | +load("@typedb_dependencies//builder/kotlin:deps.bzl", "io_bazel_rules_kotlin") |
| 39 | +io_bazel_rules_kotlin() |
| 40 | +load("@io_bazel_rules_kotlin//kotlin:repositories.bzl", "kotlin_repositories") |
| 41 | +kotlin_repositories() |
| 42 | +load("@io_bazel_rules_kotlin//kotlin:core.bzl", "kt_register_toolchains") |
| 43 | +kt_register_toolchains() |
| 44 | + |
| 45 | +# Load //tool/common |
| 46 | +load("@typedb_dependencies//tool/common:deps.bzl", "typedb_dependencies_ci_pip") |
| 47 | +typedb_dependencies_ci_pip() |
| 48 | +load("@typedb_dependencies_ci_pip//:requirements.bzl", "install_deps") |
| 49 | +install_deps() |
| 50 | + |
| 51 | +# Load //tool/checkstyle |
| 52 | +load("@typedb_dependencies//tool/checkstyle:deps.bzl", checkstyle_deps = "deps") |
| 53 | +checkstyle_deps() |
| 54 | + |
| 55 | +# Load //tool/unuseddeps |
| 56 | +load("@typedb_dependencies//tool/unuseddeps:deps.bzl", unuseddeps_deps = "deps") |
| 57 | +unuseddeps_deps() |
| 58 | + |
| 59 | +################################### |
| 60 | +# Load @typedb_bazel_distribution # |
| 61 | +################################### |
| 62 | + |
| 63 | +load("@typedb_dependencies//distribution:deps.bzl", "typedb_bazel_distribution") |
| 64 | +typedb_bazel_distribution() |
| 65 | + |
| 66 | +# Load //common |
| 67 | +load("@typedb_bazel_distribution//common:deps.bzl", "rules_pkg") |
| 68 | +rules_pkg() |
| 69 | +load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies") |
| 70 | +rules_pkg_dependencies() |
| 71 | + |
| 72 | +# Load //pip |
| 73 | +load("@typedb_bazel_distribution//pip:deps.bzl", "typedb_bazel_distribution_pip") |
| 74 | +typedb_bazel_distribution_pip() |
| 75 | +load("@typedb_bazel_distribution_pip//:requirements.bzl", "install_deps") |
| 76 | +install_deps() |
| 77 | + |
| 78 | +# Load //github |
| 79 | +load("@typedb_bazel_distribution//github:deps.bzl", "ghr_osx_zip", "ghr_linux_tar") |
| 80 | +ghr_osx_zip() |
| 81 | +ghr_linux_tar() |
| 82 | + |
| 83 | +# Load //maven |
| 84 | +load("@typedb_bazel_distribution//maven:deps.bzl", typedb_bazel_distribution_maven_artifacts = "maven_artifacts") |
| 85 | + |
| 86 | +# Load @typedb_bazel_distribution_cloudsmith |
| 87 | +load("@typedb_bazel_distribution//common/uploader:deps.bzl", "typedb_bazel_distribution_uploader") |
| 88 | +typedb_bazel_distribution_uploader() |
| 89 | +load("@typedb_bazel_distribution_uploader//:requirements.bzl", install_uploader_deps = "install_deps") |
| 90 | +install_uploader_deps() |
| 91 | + |
| 92 | +############################## |
| 93 | +# Generate workspace refs # |
| 94 | +############################## |
| 95 | + |
| 96 | +load("@typedb_bazel_distribution//common:rules.bzl", "workspace_refs") |
| 97 | +workspace_refs(name = "typedb_examples_workspace_refs") |
0 commit comments