-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathMODULE.bazel
70 lines (63 loc) · 2.92 KB
/
MODULE.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
bazel_dep(name = "rules_java", version = "8.6.1")
bazel_dep(name = "protobuf", version = "29.1")
bazel_dep(name = "bazel_jar_jar", version = "0.1.5")
bazel_dep(name = "google_bazel_common")
git_override(
module_name = "google_bazel_common",
commit = "0aa5acbefe37b58cc8f0fbdb510606bbeb19ef8a",
remote = "https://github.com/google/bazel-common",
)
bazel_dep(name = "rules_jvm_external", version = "6.6")
## START_MAVEN_ARTIFACTS_LIST
# List of external dependencies from Maven. Also update corresponding POM file below.
MAVEN_ARTIFACTS = [
"args4j:args4j:2.33",
"com.google.code.gson:gson:2.9.1",
"com.google.errorprone:error_prone_annotations:2.15.0",
"com.google.guava:failureaccess:1.0.1",
"com.google.guava:guava:33.4.0-jre",
"com.google.guava:guava-testlib:33.4.0-jre",
"com.google.jimfs:jimfs:1.2",
"com.google.protobuf:protobuf-java:3.21.12",
"com.google.re2j:re2j:1.3",
"com.google.truth.extensions:truth-proto-extension:1.4.4",
"io.github.java-diff-utils:java-diff-utils:4.12",
"org.apache.ant:ant:1.10.11",
"org.jspecify:jspecify:0.3.0",
]
# After updating dependencies, please run the license check script from this directory:
# ./license_check/third_party_license_test.sh --update
#
# Note the added "@" after version tag to make easier to extract the root url
ORDERED_POM_OR_GRADLE_FILE_LIST = [
"https://github.com/kohsuke/args4j/blob/args4j-site-2.33@/args4j/pom.xml",
"https://github.com/google/gson/blob/gson-parent-2.9.1@/gson/pom.xml",
"https://github.com/google/error-prone/blob/v2.15.0@/annotations/pom.xml",
"https://github.com/google/guava/blob/failureaccess-v1.0.1@/futures/failureaccess/pom.xml",
"https://github.com/google/guava/blob/v32.1.2@/guava/pom.xml",
"https://github.com/google/guava/blob/v32.1.2@/guava-testlib/pom.xml",
"https://github.com/google/jimfs/blob/v1.2@/jimfs/pom.xml",
"https://github.com/protocolbuffers/protobuf/blob/v3.21.12@/java/core/pom.xml",
"https://github.com/google/re2j/blob/re2j-1.3@/build.gradle",
"https://github.com/google/truth/blob/v1.4.4@/extensions/proto/pom.xml",
"https://github.com/java-diff-utils/java-diff-utils/blob/java-diff-utils-parent-4.12@/java-diff-utils/pom.xml",
"https://github.com/apache/ant/blob/rel/1.10.11@/src/etc/poms/ant/pom.xml",
"https://github.com/jspecify/jspecify/blob/v0.3.0@/gradle/publish.gradle",
]
## END_MAVEN_ARTIFACTS_LIST
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
maven.install(
artifacts = MAVEN_ARTIFACTS,
repositories = [
"https://maven.google.com",
"https://repo1.maven.org/maven2",
],
)
use_repo(maven, "maven")
# Works around https://github.com/bazelbuild/rules_python/issues/1169
bazel_dep(name = "rules_python", version = "0.28.0")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
ignore_root_user_error = True,
python_version = "3.11",
)