forked from bazel-contrib/rules_jvm_external
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
267 lines (228 loc) · 8.6 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
workspace(name = "rules_jvm_external")
android_sdk_repository(name = "androidsdk")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
load(
"//:private/versions.bzl",
"COURSIER_CLI_HTTP_FILE_NAME",
"COURSIER_CLI_GITHUB_ASSET_URL",
"COURSIER_CLI_SHA256",
)
http_file(
name = COURSIER_CLI_HTTP_FILE_NAME,
sha256 = COURSIER_CLI_SHA256,
urls = [COURSIER_CLI_GITHUB_ASSET_URL],
)
# Begin Skylib dependencies
BAZEL_SKYLIB_TAG = "0.8.0"
http_archive(
name = "bazel_skylib",
sha256 = "2ea8a5ed2b448baf4a6855d3ce049c4c452a6470b1efd1504fdb7c1c134d220a",
strip_prefix = "bazel-skylib-%s" % BAZEL_SKYLIB_TAG,
url = "https://github.com/bazelbuild/bazel-skylib/archive/%s.tar.gz" % BAZEL_SKYLIB_TAG,
)
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
# End Skylib dependencies
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "io_bazel_skydoc",
commit = "e235d7d6dec0241261bdb13d7415f3373920e6fd",
remote = "https://github.com/bazelbuild/skydoc.git",
shallow_since = "1554317371 -0400",
)
# Stardoc also depends on skydoc_repositories, rules_sass, rules_nodejs, but our
# usage of Stardoc (scripts/generate_docs) doesn't require any of these
# dependencies. So, we omit them to keep the WORKSPACE file simpler.
# https://skydoc.bazel.build/docs/getting_started_stardoc.html
# Begin test dependencies
load("//:defs.bzl", "maven_install")
load("//:specs.bzl", "maven")
maven_install(
artifacts = [
"com.google.guava:guava:27.0-jre",
"org.hamcrest:hamcrest-core:2.1",
],
repositories = [
"https://jcenter.bintray.com/",
],
)
maven_install(
name = "unsafe_shared_cache",
artifacts = [
"com.google.guava:guava:27.0-jre",
],
fetch_sources = True,
repositories = [
"https://repo1.maven.org/maven2",
],
use_unsafe_shared_cache = True,
)
maven_install(
name = "unsafe_shared_cache_with_pinning",
artifacts = [
"com.google.guava:guava:27.0-jre",
],
fetch_sources = True,
maven_install_json = "//:unsafe_shared_cache_with_pinning_install.json",
repositories = [
"https://repo1.maven.org/maven2",
],
use_unsafe_shared_cache = True,
)
load("@unsafe_shared_cache_with_pinning//:defs.bzl", "pinned_maven_install")
pinned_maven_install()
maven_install(
name = "exclusion_testing",
artifacts = [
maven.artifact(
group = "com.google.guava",
artifact = "guava",
version = "27.0-jre",
exclusions = [
maven.exclusion(
group = "org.codehaus.mojo",
artifact = "animal-sniffer-annotations",
),
"com.google.j2objc:j2objc-annotations",
],
),
],
repositories = [
"https://repo1.maven.org/maven2",
],
)
maven_install(
name = "global_exclusion_testing",
artifacts = [
"com.google.guava:guava:27.0-jre", # depends on animal-sniffer-annotations and j2objc-annotations
"com.squareup.okhttp3:okhttp:3.14.1", # depends on animal-sniffer-annotations
"com.diffplug.durian:durian-core:1.2.0", # depends on animal-sniffer-annotations and j2objc-annotations
],
excluded_artifacts = [
maven.exclusion(
group = "org.codehaus.mojo",
artifact = "animal-sniffer-annotations",
),
"com.google.j2objc:j2objc-annotations",
],
repositories = [
"https://repo1.maven.org/maven2",
],
)
# These artifacts helped discover limitations by the Maven resolver. Each
# artifact listed here *must have* an accompanying issue. We build_test these
# targets to ensure that they remain supported by the rule.
maven_install(
name = "regression_testing",
artifacts = [
# https://github.com/bazelbuild/rules_jvm_external/issues/74
"org.pantsbuild:jarjar:1.6.6",
# https://github.com/bazelbuild/rules_jvm_external/issues/59
"junit:junit:4.12",
"org.jetbrains.kotlin:kotlin-test:1.3.21",
# https://github.com/bazelbuild/rules_jvm_external/issues/101
"com.digitalasset:damlc:jar:osx:100.12.1",
# https://github.com/bazelbuild/rules_jvm_external/issues/116
"org.eclipse.jetty.orbit:javax.servlet:3.0.0.v201112011016",
# https://github.com/bazelbuild/rules_jvm_external/issues/92#issuecomment-478430167
maven.artifact(
"com.squareup",
"javapoet",
"1.11.1",
neverlink = True,
),
# https://github.com/bazelbuild/rules_jvm_external/issues/98
"com.github.fommil.netlib:all:1.1.2",
"nz.ac.waikato.cms.weka:weka-stable:3.8.1",
# https://github.com/bazelbuild/rules_jvm_external/issues/111
"com.android.support:appcompat-v7:aar:28.0.0",
"com.google.android.gms:play-services-base:16.1.0",
# https://github.com/bazelbuild/rules_jvm_external/issues/119#issuecomment-484278260
"org.apache.flink:flink-test-utils_2.12:1.8.0",
# https://github.com/bazelbuild/rules_jvm_external/issues/170
"ch.epfl.scala:compiler-interface:1.3.0-M4+20-c8a2f9bd",
# https://github.com/bazelbuild/rules_jvm_external/issues/172
"org.openjfx:javafx-base:11.0.1",
# https://github.com/bazelbuild/rules_jvm_external/issues/178
"io.kubernetes:client-java:4.0.0-beta1",
# https://github.com/bazelbuild/rules_jvm_external/issues/199
"com.google.ar.sceneform.ux:sceneform-ux:1.10.0",
# https://github.com/bazelbuild/rules_jvm_external/issues/119#issuecomment-504704752
"com.github.oshi:oshi-parent:3.4.0",
"com.github.spinalhdl:spinalhdl-core_2.11:1.3.6",
"com.github.spinalhdl:spinalhdl-lib_2.11:1.3.6",
# https://github.com/bazelbuild/rules_jvm_external/issues/201
"org.apache.kafka:kafka_2.11:2.1.1",
"io.confluent:kafka-avro-serializer:5.0.1",
],
generate_compat_repositories = True,
maven_install_json = "//:regression_testing_install.json",
override_targets = {
"com.google.ar.sceneform:rendering": "@//tests/integration/override_targets:sceneform_rendering",
},
repositories = [
"https://repo1.maven.org/maven2",
"https://digitalassetsdk.bintray.com/DigitalAssetSDK",
"https://maven.google.com",
"https://packages.confluent.io/maven/",
],
)
load("@regression_testing//:defs.bzl", "pinned_maven_install")
pinned_maven_install()
load("@regression_testing//:compat.bzl", "compat_repositories")
compat_repositories()
maven_install(
name = "policy_pinned_testing",
artifacts = [
# https://github.com/bazelbuild/rules_jvm_external/issues/107
"com.google.cloud:google-cloud-storage:1.66.0",
"com.google.guava:guava:25.0-android",
],
maven_install_json = "//:policy_pinned_testing_install.json",
repositories = [
"https://repo1.maven.org/maven2",
"https://maven.google.com",
],
version_conflict_policy = "pinned",
)
load(
"@policy_pinned_testing//:defs.bzl",
_policy_pinned_maven_install = "pinned_maven_install",
)
_policy_pinned_maven_install()
maven_install(
name = "strict_visibility_testing",
artifacts = [
# https://github.com/bazelbuild/rules_jvm_external/issues/94
"org.apache.tomcat:tomcat-catalina:9.0.24",
],
repositories = [
"https://repo1.maven.org/maven2",
],
strict_visibility = True,
)
RULES_KOTLIN_VERSION = "9051eb053f9c958440603d557316a6e9fda14687"
http_archive(
name = "io_bazel_rules_kotlin",
sha256 = "c36e71eec84c0e17dd098143a9d93d5720e81b4db32bceaf2daf939252352727",
strip_prefix = "rules_kotlin-%s" % RULES_KOTLIN_VERSION,
url = "https://github.com/bazelbuild/rules_kotlin/archive/%s.tar.gz" % RULES_KOTLIN_VERSION,
)
load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kotlin_repositories", "kt_register_toolchains")
kotlin_repositories()
kt_register_toolchains()
# End test dependencies
http_archive(
name = "bazel_toolchains",
sha256 = "dcb58e7e5f0b4da54c6c5f8ebc65e63fcfb37414466010cf82ceff912162296e",
strip_prefix = "bazel-toolchains-0.28.2",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/0.28.2.tar.gz",
"https://github.com/bazelbuild/bazel-toolchains/archive/0.28.2.tar.gz",
],
)
load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
# Creates a default toolchain config for RBE.
# Use this as is if you are using the rbe_ubuntu16_04 container,
# otherwise refer to RBE docs.
rbe_autoconfig(name = "buildkite_config")