forked from bazel-contrib/target-determinator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
127 lines (97 loc) · 4.05 KB
/
WORKSPACE
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "bazel_gazelle",
sha256 = "efbbba6ac1a4fd342d5122cbdfdb82aeb2cf2862e35022c752eaddffada7c3f3",
urls = [
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.27.0/bazel-gazelle-v0.27.0.tar.gz",
],
)
http_archive(
name = "io_bazel_rules_go",
sha256 = "099a9fb96a376ccbbb7d291ed4ecbdfd42f6bc822ab77ae6f1b5cb9e914e94fa",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.35.0/rules_go-v0.35.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.35.0/rules_go-v0.35.0.zip",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
load("//:third_party/go/deps.bzl", "go_dependencies")
# gazelle:repository_macro third_party/go/deps.bzl%go_dependencies
go_dependencies()
go_rules_dependencies()
go_register_toolchains(version = "1.18")
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
gazelle_dependencies()
# Pull in bazel_diff for testing.
http_archive(
name = "bazel_diff",
patch_args = ["-p1"],
patches = ["@//:third_party/patches/bazel-diff-only-just-non-external-rules.patch"],
sha256 = "bdc3ef2192e9aeb288506e2f348aef57bce5e4facf7374b6185ac5ccdd4a9001",
strip_prefix = "bazel-diff-3.5.0",
url = "https://github.com/Tinder/bazel-diff/archive/refs/tags/3.5.0.tar.gz",
)
RULES_JVM_EXTERNAL_TAG = "4.2"
RULES_JVM_EXTERNAL_SHA = "2cd77de091e5376afaf9cc391c15f093ebd0105192373b334f0a855d89092ad5"
http_archive(
name = "rules_jvm_external",
sha256 = RULES_JVM_EXTERNAL_SHA,
strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG,
url = "https://github.com/bazelbuild/rules_jvm_external/archive/refs/tags/%s.tar.gz" % RULES_JVM_EXTERNAL_TAG,
)
load("@rules_jvm_external//:repositories.bzl", "rules_jvm_external_deps")
rules_jvm_external_deps()
load("@rules_jvm_external//:setup.bzl", "rules_jvm_external_setup")
rules_jvm_external_setup()
load("@rules_jvm_external//:defs.bzl", "maven_install")
load("@bazel_diff//:artifacts.bzl", "BAZEL_DIFF_MAVEN_ARTIFACTS")
maven_install(
artifacts = [
"com.google.guava:guava:31.0.1-jre",
"junit:junit:4.12",
"org.eclipse.jgit:org.eclipse.jgit:5.11.0.202103091610-r",
"org.hamcrest:hamcrest-all:1.3",
],
fail_if_repin_required = True,
fetch_sources = True,
maven_install_json = "@//:maven_install.json",
repositories = [
"https://repo1.maven.org/maven2",
],
)
maven_install(
name = "bazel_diff_maven",
artifacts = BAZEL_DIFF_MAVEN_ARTIFACTS,
fail_if_repin_required = True,
maven_install_json = "@//:bazel_diff_maven_install.json",
repositories = [
"https://repo1.maven.org/maven2",
],
)
load("@maven//:defs.bzl", "pinned_maven_install")
pinned_maven_install()
load("@bazel_diff_maven//:defs.bzl", bazel_diff_pinned_maven_install = "pinned_maven_install")
bazel_diff_pinned_maven_install()
# Pull in bazel_differ for testing
http_archive(
name = "bazel_differ",
sha256 = "c9265836bafcfe2925f6c44029191cda6d4c9267299cbe3a739d859da6b3a0d3",
strip_prefix = "bazel-differ-0.0.5",
url = "https://github.com/ewhauser/bazel-differ/archive/refs/tags/v0.0.5.tar.gz",
)
load("@bazel_differ//:deps.bzl", bazel_differ_deps = "go_dependencies")
# Unfortunately if we don't vendor this file into the repo, gazelle doesn't seem to properly handle its contents.
# gazelle:repository_macro third_party/go/bazel_differ_deps.bzl%go_dependencies
# gazelle:ignore
bazel_differ_deps()
http_archive(
name = "rules_proto",
sha256 = "b9e1268c5bce4bb01ef31730300b8a4f562dc1211088f125c39af716f6f65f60",
strip_prefix = "rules_proto-e507ccded37c389186afaeb2b836ec576dc875dc",
urls = [
"https://github.com/bazelbuild/rules_proto/archive/e507ccded37c389186afaeb2b836ec576dc875dc.tar.gz",
],
)
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
rules_proto_dependencies()
rules_proto_toolchains()