blob: 607da272ad6b9d6beeec03c85af967f9bfe3c372 [file] [log] [blame]
Kristina Chodorow93fbc3e2016-04-27 17:03:28 +00001workspace(name = "io_bazel")
philwo75edd782019-01-29 05:02:44 -08002
Klaus Aehliga55714c2018-10-23 02:16:02 -07003load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
Kristina Chodorow93fbc3e2016-04-27 17:03:28 +00004
David Chenb78bbd52016-03-16 13:17:57 +00005# Protobuf expects an //external:python_headers label which would contain the
6# Python headers if fast Python protos is enabled. Since we are not using fast
7# Python protos, bind python_headers to a dummy target.
8bind(
9 name = "python_headers",
10 actual = "//:dummy",
11)
12
Alpha Lama1a79cb2016-05-15 19:13:52 +000013# Protobuf code generation for GRPC requires three external labels:
14# //external:grpc-java_plugin
15# //external:grpc-jar
16# //external:guava
17bind(
18 name = "grpc-java-plugin",
19 actual = "//third_party/grpc:grpc-java-plugin",
20)
21
22bind(
23 name = "grpc-jar",
24 actual = "//third_party/grpc:grpc-jar",
25)
26
27bind(
28 name = "guava",
29 actual = "//third_party:guava",
30)
31
Jakob Buchgraber6e12e652017-05-02 11:53:15 +020032# Used by //third_party/protobuf:protobuf_python
33bind(
34 name = "six",
35 actual = "//third_party/py/six",
36)
37
Googler5b90b162017-08-31 16:29:34 +020038http_archive(
39 name = "bazel_j2objc",
Laszlo Csomor0f3f7882018-03-13 06:56:12 -070040 # Computed using "shasum -a 256 j2objc-2.0.3.zip"
41 sha256 = "a36bac432d0dbd8c98249e484b2b69dd5720afa4abb58711a3c3def1c0bfa21d",
Googler5b90b162017-08-31 16:29:34 +020042 strip_prefix = "j2objc-2.0.3",
hlopko6b06acc2019-03-25 04:40:10 -070043 urls = [
44 "https://miirror.bazel.build/github.com/google/j2objc/releases/download/2.0.3/j2objc-2.0.3.zip",
45 "https://github.com/google/j2objc/releases/download/2.0.3/j2objc-2.0.3.zip",
46 ],
Googler5b90b162017-08-31 16:29:34 +020047)
48
Damien Martin-Guillerez0baff0f2017-08-22 17:40:37 +020049# For src/test/shell/bazel:test_srcs
50load("//src/test/shell/bazel:list_source_repository.bzl", "list_source_repository")
cushonb6646232018-09-07 01:44:10 -070051
Damien Martin-Guillerez0baff0f2017-08-22 17:40:37 +020052list_source_repository(name = "local_bazel_source_list")
53
Adam Michael9b7330f2017-03-23 18:40:51 +000054# To run the Android integration tests in //src/test/shell/bazel/android:all or
55# build the Android sample app in //examples/android/java/bazel:hello_world
56#
57# 1. Install an Android SDK and NDK from https://developer.android.com
58# 2. Set the $ANDROID_HOME and $ANDROID_NDK_HOME environment variables
59# 3. Uncomment the two lines below
60#
61# android_sdk_repository(name = "androidsdk")
62# android_ndk_repository(name = "androidndk")
Cal Peyser2152bc12016-04-22 17:08:59 +000063
Adam Michael8a136d82016-11-16 23:04:46 +000064# In order to run //src/test/shell/bazel:maven_skylark_test, follow the
65# instructions above for the Android integration tests and uncomment the
66# following lines:
67# load("//tools/build_defs/repo:maven_rules.bzl", "maven_dependency_plugin")
68# maven_dependency_plugin()
69
Cal Peyser2152bc12016-04-22 17:08:59 +000070# This allows rules written in skylark to locate apple build tools.
philwo915fa8f2017-05-09 12:17:12 -040071bind(
72 name = "xcrunwrapper",
73 actual = "@bazel_tools//tools/objc:xcrunwrapper",
74)
Carmi Grushkobfaff292016-08-17 18:37:55 +000075
Jakob Buchgraber8ff0d0d2017-04-14 21:16:19 +020076new_local_repository(
Carmi Grushko0fd73d62017-02-17 06:49:40 +000077 name = "com_google_protobuf",
hlopkoead10022018-09-05 05:37:23 -070078 build_file = "./third_party/protobuf/3.6.1/BUILD",
79 path = "./third_party/protobuf/3.6.1/",
Carmi Grushko0fd73d62017-02-17 06:49:40 +000080)
81
John Cater2f838922018-11-12 08:19:03 -080082local_repository(
Jakob Buchgraber166f28c2017-05-30 16:41:18 +020083 name = "googleapis",
cushonb6646232018-09-07 01:44:10 -070084 path = "./third_party/googleapis/",
Jakob Buchgraber166f28c2017-05-30 16:41:18 +020085)
86
John Cater2f838922018-11-12 08:19:03 -080087local_repository(
Ola Rozenfeld930119a2018-08-10 11:04:44 -070088 name = "remoteapis",
cushonb6646232018-09-07 01:44:10 -070089 path = "./third_party/remoteapis/",
Ola Rozenfeld930119a2018-08-10 11:04:44 -070090)
91
kmbbfd89d62018-04-11 14:26:56 -070092http_archive(
93 name = "desugar_jdk_libs",
Klaus Aehligd4a8a472018-12-06 07:34:02 -080094 # Commit e0b0291b2c51fbe5a7cfa14473a1ae850f94f021 of 2018-12-4
kmbbfd89d62018-04-11 14:26:56 -070095 # Computed using "shasum -a 256 <zip>"
kmba9641252018-12-05 13:17:58 -080096 sha256 = "fe2e04f91ce8c59d49d91b8102edc6627c6fa2906c1b0e7346f01419ec4f419d",
97 strip_prefix = "desugar_jdk_libs-e0b0291b2c51fbe5a7cfa14473a1ae850f94f021",
philwof443d092019-01-08 11:11:09 -080098 urls = [
philwo75edd782019-01-29 05:02:44 -080099 "https://mirror.bazel.build/github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
100 "https://github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
101 ],
kmbbfd89d62018-04-11 14:26:56 -0700102)
103
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700104load("//:distdir.bzl", "distdir_tar")
cushonb6646232018-09-07 01:44:10 -0700105
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700106distdir_tar(
107 name = "additional_distfiles",
Klaus Aehligdbe05df2018-12-06 06:00:49 -0800108 # Keep in sync with the archives fetched as part of building bazel
cparsons871cd6f2018-08-16 09:10:38 -0700109 archives = [
Klaus Aehligd4a8a472018-12-06 07:34:02 -0800110 "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
Klaus Aehligdbe05df2018-12-06 06:00:49 -0800111 "f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz",
iirinaebdbdcd2019-04-09 04:43:08 -0700112 "java_tools_javac10_linux-x86_64-v2.1.zip",
113 "java_tools_javac10_windows-x86_64-v2.1.zip",
114 "java_tools_javac10_darwin-v2.1.zip",
iirinaec2b0802019-04-09 10:43:48 -0700115 "coverage_output_generator-v1.0.zip",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700116 "2d9566b21fbe405acf5f7bf77eda30df72a4744c.tar.gz",
117 "8ccf4f1c351928b55d5dddf3672e3667f6978d60.tar.gz",
118 "0.16.2.zip",
Jingwen Chen186929e2019-04-02 10:38:30 -0700119 "android_tools_pkg-0.1.tar.gz",
cparsons871cd6f2018-08-16 09:10:38 -0700120 ],
cushonb6646232018-09-07 01:44:10 -0700121 dirname = "derived/distdir",
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700122 sha256 = {
Klaus Aehligd4a8a472018-12-06 07:34:02 -0800123 "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip": "fe2e04f91ce8c59d49d91b8102edc6627c6fa2906c1b0e7346f01419ec4f419d",
Klaus Aehligdbe05df2018-12-06 06:00:49 -0800124 "f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz": "ba5d15ca230efca96320085d8e4d58da826d1f81b444ef8afccd8b23e0799b52",
iirinaebdbdcd2019-04-09 04:43:08 -0700125 "java_tools_javac10_linux-x86_64-v2.1.zip": "9163c9963f31e10101d538163c435db9534baf9db63d380508311b775fbe3c37",
126 "java_tools_javac10_windows-x86_64-v2.1.zip": "a7a99e34213eb80384b81dda0217582a38f876f420c7b648900f254bf9ea3bd7",
127 "java_tools_javac10_darwin-v2.1.zip": "5f6a7abf7ec0c491dc2d0b15add6a2abb594e31809f4cabc2cfde41efa995f92",
iirinaec2b0802019-04-09 10:43:48 -0700128 "coverage_output_generator-v1.0.zip": "cc470e529fafb6165b5be3929ff2d99b38429b386ac100878687416603a67889",
iirinaf5c334262019-03-19 02:44:59 -0700129 "2d9566b21fbe405acf5f7bf77eda30df72a4744c.tar.gz": "4a1318fed4831697b83ce879b3ab70ae09592b167e5bda8edaff45132d1c3b3f",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700130 "8ccf4f1c351928b55d5dddf3672e3667f6978d60.tar.gz": "d868ce50d592ef4aad7dec4dd32ae68d2151261913450fac8390b3fd474bb898",
131 "0.16.2.zip": "9b72bb0aea72d7cbcfc82a01b1e25bf3d85f791e790ddec16c65e2d906382ee0",
Jingwen Chen186929e2019-04-02 10:38:30 -0700132 "android_tools_pkg-0.1.tar.gz": "b71b10e8f067dd6bff446fb0d49239fe28b12cfd1ed24278d04b06cf54669862",
cushonb6646232018-09-07 01:44:10 -0700133 },
134 urls = {
hlopko6b06acc2019-03-25 04:40:10 -0700135 "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip": [
136 "https://mirror.bazel.build/github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
137 "https://github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
138 ],
139 "f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz": [
140 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/archive/f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz",
141 "https://github.com/bazelbuild/bazel-skylib/archive/f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz",
142 ],
iirinaebdbdcd2019-04-09 04:43:08 -0700143 "java_tools_javac10_linux-x86_64-v2.1.zip": [
144 "https://mirror.bazel.build/bazel_java_tools/releases/java_tools_javac10_linux-x86_64-v2.1.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700145 ],
iirinaebdbdcd2019-04-09 04:43:08 -0700146 "java_tools_javac10_windows-x86_64-v2.1.zip": [
147 "https://mirror.bazel.build/bazel_java_tools/releases/java_tools_javac10_windows-x86_64-v2.1.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700148 ],
iirinaebdbdcd2019-04-09 04:43:08 -0700149 "java_tools_javac10_darwin-v2.1.zip": [
150 "https://mirror.bazel.build/bazel_java_tools/releases/java_tools_javac10_darwin-v2.1.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700151 ],
iirinaec2b0802019-04-09 10:43:48 -0700152 "coverage_output_generator-v1.0.zip": [
153 "https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v1.0.zip",
154 ],
hlopko6b06acc2019-03-25 04:40:10 -0700155 "2d9566b21fbe405acf5f7bf77eda30df72a4744c.tar.gz": [
156 "https://mirror.bazel.build/github.com/bazelbuild/skydoc/archive/2d9566b21fbe405acf5f7bf77eda30df72a4744c.tar.gz",
157 "https://github.com/bazelbuild/skydoc/archive/2d9566b21fbe405acf5f7bf77eda30df72a4744c.tar.gz",
158 ],
159 "8ccf4f1c351928b55d5dddf3672e3667f6978d60.tar.gz": [
160 "https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/8ccf4f1c351928b55d5dddf3672e3667f6978d60.tar.gz",
161 "https://github.com/bazelbuild/rules_sass/archive/8ccf4f1c351928b55d5dddf3672e3667f6978d60.tar.gz",
162 ],
163 "0.16.2.zip": [
164 "https://mirror.bazel.build/github.com/bazelbuild/rules_nodejs/archive/0.16.2.zip",
165 "https://github.com/bazelbuild/rules_nodejs/archive/0.16.2.zip",
166 ],
Jingwen Chen186929e2019-04-02 10:38:30 -0700167 "android_tools_pkg-0.1.tar.gz": [
168 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.1.tar.gz",
169 ],
cushonb6646232018-09-07 01:44:10 -0700170 },
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700171)
172
Philipp Wollermann95048272017-03-17 15:11:58 +0000173# OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK.
174http_file(
175 name = "openjdk_linux",
philwo75edd782019-01-29 05:02:44 -0800176 downloaded_file_path = "zulu-linux.tar.gz",
Tobias Werth8db50b62019-02-03 15:09:17 -0800177 sha256 = "460d8a4f0c0204160b48086e341b22943c9cca471b195340e75b38ae9eb33c1c",
philwo915fa8f2017-05-09 12:17:12 -0400178 urls = [
Tobias Werth8db50b62019-02-03 15:09:17 -0800179 "https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-linux_x64-allmodules-90755145cb6e6418584d8603cd5fa9afbb30aecc-1549209950.tar.gz",
philwo915fa8f2017-05-09 12:17:12 -0400180 ],
Philipp Wollermann95048272017-03-17 15:11:58 +0000181)
182
Tobias Werth218e8f62018-12-13 04:44:35 -0800183http_file(
184 name = "openjdk_linux_vanilla",
philwo75edd782019-01-29 05:02:44 -0800185 downloaded_file_path = "zulu-linux-vanilla.tar.gz",
Tobias Werth00680552019-02-03 02:17:41 -0800186 sha256 = "f3f44b6235508e87b760bf37a49e186cc1fa4e9cd28384c4dbf5a33991921e08",
Tobias Werth218e8f62018-12-13 04:44:35 -0800187 urls = [
Tobias Werth00680552019-02-03 02:17:41 -0800188 "https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-linux_x64.tar.gz",
Tobias Werth218e8f62018-12-13 04:44:35 -0800189 ],
Tobias Werth218e8f62018-12-13 04:44:35 -0800190)
191
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800192http_file(
193 name = "openjdk_linux_minimal",
philwo75edd782019-01-29 05:02:44 -0800194 downloaded_file_path = "zulu-linux-minimal.tar.gz",
Tobias Werthadacaf92019-04-23 05:53:31 -0700195 sha256 = "5123bc8dd21886761d1fd9ca0fb1898b3372d7243064a070ec81ca9c9d1a6791",
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800196 urls = [
Tobias Werthadacaf92019-04-23 05:53:31 -0700197 "https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-linux_x64-minimal-524ae2ca2a782c9f15e00f08bd35b3f8ceacbd7f-1556011926.tar.gz",
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800198 ],
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800199)
200
philwo54c25722018-10-02 05:41:00 -0700201# Used by CI to test Bazel on platforms without an installed system JDK.
202# TODO(twerth): Migrate to @remotejdk when https://github.com/bazelbuild/bazel/pull/6216 is merged.
Klaus Aehliga55714c2018-10-23 02:16:02 -0700203http_archive(
philwo54c25722018-10-02 05:41:00 -0700204 name = "openjdk_linux_archive",
philwo75edd782019-01-29 05:02:44 -0800205 build_file_content = "java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])",
philwo54c25722018-10-02 05:41:00 -0700206 sha256 = "f27cb933de4f9e7fe9a703486cf44c84bc8e9f138be0c270c9e5716a32367e87",
philwo75edd782019-01-29 05:02:44 -0800207 strip_prefix = "zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules",
philwo54c25722018-10-02 05:41:00 -0700208 urls = [
209 "https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules.tar.gz",
210 ],
philwo54c25722018-10-02 05:41:00 -0700211)
212
Philipp Wollermann95048272017-03-17 15:11:58 +0000213http_file(
214 name = "openjdk_macos",
philwo75edd782019-01-29 05:02:44 -0800215 downloaded_file_path = "zulu-macos.tar.gz",
Tobias Werth8db50b62019-02-03 15:09:17 -0800216 sha256 = "8fa61d85ca6f657d646fdb50cfc8634987f8f7d8a3250ed39fb7364647633252",
philwo915fa8f2017-05-09 12:17:12 -0400217 urls = [
Tobias Werth8db50b62019-02-03 15:09:17 -0800218 "https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-macosx_x64-allmodules-90755145cb6e6418584d8603cd5fa9afbb30aecc-1549209951.tar.gz",
philwo915fa8f2017-05-09 12:17:12 -0400219 ],
Philipp Wollermann95048272017-03-17 15:11:58 +0000220)
221
222http_file(
Tobias Werth218e8f62018-12-13 04:44:35 -0800223 name = "openjdk_macos_vanilla",
philwo75edd782019-01-29 05:02:44 -0800224 downloaded_file_path = "zulu-macos-vanilla.tar.gz",
Tobias Werth00680552019-02-03 02:17:41 -0800225 sha256 = "059f8e3484bf07b63a8f2820d5f528f473eff1befdb1896ee4f8ff06be3b8d8f",
Tobias Werth218e8f62018-12-13 04:44:35 -0800226 urls = [
Tobias Werth00680552019-02-03 02:17:41 -0800227 "https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-macosx_x64.zip",
Tobias Werth218e8f62018-12-13 04:44:35 -0800228 ],
Tobias Werth218e8f62018-12-13 04:44:35 -0800229)
230
231http_file(
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800232 name = "openjdk_macos_minimal",
philwo75edd782019-01-29 05:02:44 -0800233 downloaded_file_path = "zulu-macos-minimal.tar.gz",
Tobias Werthadacaf92019-04-23 05:53:31 -0700234 sha256 = "ac56e44db46fd56ac78b39b6823daed4faa74a2677ac340c7d217f863884ec0f",
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800235 urls = [
Tobias Werthadacaf92019-04-23 05:53:31 -0700236 "https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-macosx_x64-minimal-524ae2ca2a782c9f15e00f08bd35b3f8ceacbd7f-1556003114.tar.gz",
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800237 ],
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800238)
239
240http_file(
Philipp Wollermann95048272017-03-17 15:11:58 +0000241 name = "openjdk_win",
philwo75edd782019-01-29 05:02:44 -0800242 downloaded_file_path = "zulu-win.zip",
Tobias Werth8db50b62019-02-03 15:09:17 -0800243 sha256 = "e6ddb361309f8e84eb5fb5ad8b0f5cc031ba3679910139262c31efd8f7579d05",
philwo915fa8f2017-05-09 12:17:12 -0400244 urls = [
Tobias Werth8db50b62019-02-03 15:09:17 -0800245 "https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-win_x64-allmodules-90755145cb6e6418584d8603cd5fa9afbb30aecc-1549209972.zip",
philwo915fa8f2017-05-09 12:17:12 -0400246 ],
Philipp Wollermann95048272017-03-17 15:11:58 +0000247)
Googler5f36bf82017-07-12 20:43:08 +0200248
Tobias Werth218e8f62018-12-13 04:44:35 -0800249http_file(
250 name = "openjdk_win_vanilla",
philwo75edd782019-01-29 05:02:44 -0800251 downloaded_file_path = "zulu-win-vanilla.zip",
Tobias Werth00680552019-02-03 02:17:41 -0800252 sha256 = "e1f5b4ce1b9148140fae2fcfb8a96d1c9b7eac5b8df0e13fbcad9b8561284880",
Tobias Werth218e8f62018-12-13 04:44:35 -0800253 urls = [
Tobias Werth00680552019-02-03 02:17:41 -0800254 "https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-win_x64.zip",
Tobias Werth218e8f62018-12-13 04:44:35 -0800255 ],
Tobias Werth218e8f62018-12-13 04:44:35 -0800256)
257
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800258http_file(
259 name = "openjdk_win_minimal",
philwo75edd782019-01-29 05:02:44 -0800260 downloaded_file_path = "zulu-win-minimal.zip",
Tobias Werthadacaf92019-04-23 05:53:31 -0700261 sha256 = "8e5dada6e9ebcc9ce29b4d051449bb95d3ee1e620e166da862224bbf15211f8b",
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800262 urls = [
Tobias Werthadacaf92019-04-23 05:53:31 -0700263 "https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-win_x64-minimal-524ae2ca2a782c9f15e00f08bd35b3f8ceacbd7f-1556003136.zip",
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800264 ],
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800265)
266
Arielle Albonfa7e49f2018-07-31 00:57:54 -0700267# The source-code for this OpenJDK can be found at:
lberki7eb9ea12018-09-07 04:01:48 -0700268# https://openjdk.linaro.org/releases/jdk9-src-1708.tar.xz
Arielle Albonfa7e49f2018-07-31 00:57:54 -0700269http_file(
270 name = "openjdk_linux_aarch64",
lberki7eb9ea12018-09-07 04:01:48 -0700271 sha256 = "72e7843902b0395e2d30e1e9ad2a5f05f36a4bc62529828bcbc698d54aec6022",
Arielle Albonfa7e49f2018-07-31 00:57:54 -0700272 urls = [
273 # When you update this, also update the link to the source-code above.
philwo6ebc71f2018-10-23 11:57:09 -0700274 "https://mirror.bazel.build/openjdk.linaro.org/releases/jdk9-server-release-1708.tar.xz",
lberki7eb9ea12018-09-07 04:01:48 -0700275 "http://openjdk.linaro.org/releases/jdk9-server-release-1708.tar.xz",
Arielle Albonfa7e49f2018-07-31 00:57:54 -0700276 ],
277)
278
Googler5f36bf82017-07-12 20:43:08 +0200279http_archive(
Jakob Buchgraber593c5302019-04-16 10:12:20 -0700280 name = "bazel_toolchains",
281 sha256 = "67335b3563d9b67dc2550b8f27cc689b64fadac491e69ce78763d9ba894cc5cc",
282 strip_prefix = "bazel-toolchains-cddc376d428ada2927ad359211c3e356bd9c9fbb",
283 urls = [
284 "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/cddc376d428ada2927ad359211c3e356bd9c9fbb.tar.gz",
285 "https://github.com/bazelbuild/bazel-toolchains/archive/cddc376d428ada2927ad359211c3e356bd9c9fbb.tar.gz",
286 ],
Googler5f36bf82017-07-12 20:43:08 +0200287)
ccalvarin1cbe62a2017-08-14 21:09:07 +0200288
Googlerde0612a2019-03-07 06:06:55 -0800289# Creates toolchain configuration for remote execution with BuildKite CI
290# for rbe_ubuntu1604.
291# To run the tests with RBE on BuildKite CI uncomment the two lines below
292# load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
293# rbe_autoconfig(name = "buildkite_config")
294
ccalvarin73839762018-03-23 15:35:00 -0700295# We're pinning to a commit because this project does not have a recent release.
296# Nothing special about this commit, though.
ccalvarin8e9f4a82018-03-23 08:19:37 -0700297http_archive(
298 name = "com_google_googletest",
Loo Rong Jiee94aa222018-10-15 01:27:08 -0700299 sha256 = "0fb00ff413f6b9b80ccee44a374ca7a18af7315aea72a43c62f2acd1ca74e9b5",
300 strip_prefix = "googletest-f13bbe2992d188e834339abe6f715b2b2f840a77",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700301 urls = [
hlopko6b06acc2019-03-25 04:40:10 -0700302 "https://mirror.bazel.build/github.com/google/googletest/archive/f13bbe2992d188e834339abe6f715b2b2f840a77.tar.gz",
Loo Rong Jiee94aa222018-10-15 01:27:08 -0700303 "https://github.com/google/googletest/archive/f13bbe2992d188e834339abe6f715b2b2f840a77.tar.gz",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700304 ],
ccalvarin8e9f4a82018-03-23 08:19:37 -0700305)
306
cparsons871cd6f2018-08-16 09:10:38 -0700307http_archive(
308 name = "bazel_skylib",
Klaus Aehligdbe05df2018-12-06 06:00:49 -0800309 # Commit f83cb8dd6f5658bc574ccd873e25197055265d1c of 2018-11-26
cparsons48b672c2018-11-29 15:01:32 -0800310 sha256 = "ba5d15ca230efca96320085d8e4d58da826d1f81b444ef8afccd8b23e0799b52",
311 strip_prefix = "bazel-skylib-f83cb8dd6f5658bc574ccd873e25197055265d1c",
cparsons871cd6f2018-08-16 09:10:38 -0700312 urls = [
hlopko6b06acc2019-03-25 04:40:10 -0700313 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/archive/f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz",
cparsons48b672c2018-11-29 15:01:32 -0800314 "https://github.com/bazelbuild/bazel-skylib/archive/f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz",
cparsons871cd6f2018-08-16 09:10:38 -0700315 ],
cparsons871cd6f2018-08-16 09:10:38 -0700316)
cparsonsa5be6612018-08-27 13:21:21 -0700317
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700318# Note that skydoc depends on being called io_bazel_skydoc (and not just skydoc)
319# to work without being patched, as it hard-codes this name in its sources.
cparsonsa5be6612018-08-27 13:21:21 -0700320http_archive(
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700321 name = "io_bazel_skydoc",
cparsons1488f912019-02-27 10:22:55 -0800322 sha256 = "4a1318fed4831697b83ce879b3ab70ae09592b167e5bda8edaff45132d1c3b3f",
323 strip_prefix = "skydoc-2d9566b21fbe405acf5f7bf77eda30df72a4744c",
cparsonsa5be6612018-08-27 13:21:21 -0700324 urls = [
hlopko6b06acc2019-03-25 04:40:10 -0700325 "https://mirror.bazel.build/github.com/bazelbuild/skydoc/archive/2d9566b21fbe405acf5f7bf77eda30df72a4744c.tar.gz",
cparsons1488f912019-02-27 10:22:55 -0800326 "https://github.com/bazelbuild/skydoc/archive/2d9566b21fbe405acf5f7bf77eda30df72a4744c.tar.gz",
cparsonsa5be6612018-08-27 13:21:21 -0700327 ],
cparsonsa5be6612018-08-27 13:21:21 -0700328)
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700329
330# For testing, have an distdir_tar with all the archives implicit in every
331# WORKSPACE, to that they don't have to be refetched for every test
332# calling `bazel sync`.
333distdir_tar(
Jingwen Chen186929e2019-04-02 10:38:30 -0700334 name = "test_WORKSPACE_files",
philwo75edd782019-01-29 05:02:44 -0800335 archives = [
336 "zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules.tar.gz",
337 "zulu9.0.7.1-jdk9.0.7-macosx_x64-allmodules.tar.gz",
338 "zulu9.0.7.1-jdk9.0.7-win_x64-allmodules.zip",
339 "jdk9-server-release-1708.tar.xz",
340 "zulu10.2+3-jdk10.0.1-linux_x64-allmodules.tar.gz",
341 "zulu10.2+3-jdk10.0.1-macosx_x64-allmodules.tar.gz",
342 "zulu10.2+3-jdk10.0.1-win_x64-allmodules.zip",
343 "jdk10-server-release-1804.tar.xz",
iirinaebdbdcd2019-04-09 04:43:08 -0700344 "java_tools_javac10_linux-x86_64-v2.1.zip",
345 "java_tools_javac10_windows-x86_64-v2.1.zip",
346 "java_tools_javac10_darwin-v2.1.zip",
iirinaec2b0802019-04-09 10:43:48 -0700347 "coverage_output_generator-v1.0.zip",
philwo75edd782019-01-29 05:02:44 -0800348 "zulu11.2.3-jdk11.0.1-linux_x64.tar.gz",
349 "zulu11.2.3-jdk11.0.1-macosx_x64.tar.gz",
350 "zulu11.2.3-jdk11.0.1-win_x64.zip",
Tobias Werth00680552019-02-03 02:17:41 -0800351 "zulu11.29.3-ca-jdk11.0.2-linux_x64.tar.gz",
352 "zulu11.29.3-ca-jdk11.0.2-macosx_x64.zip",
353 "zulu11.29.3-ca-jdk11.0.2-win_x64.zip",
Jingwen Chen186929e2019-04-02 10:38:30 -0700354 "android_tools_pkg-0.1.tar.gz",
philwo75edd782019-01-29 05:02:44 -0800355 ],
Jingwen Chen186929e2019-04-02 10:38:30 -0700356 dirname = "test_WORKSPACE/distdir",
philwo75edd782019-01-29 05:02:44 -0800357 sha256 = {
358 "zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules.tar.gz": "f27cb933de4f9e7fe9a703486cf44c84bc8e9f138be0c270c9e5716a32367e87",
359 "zulu9.0.7.1-jdk9.0.7-macosx_x64-allmodules.tar.gz": "404e7058ff91f956612f47705efbee8e175a38b505fb1b52d8c1ea98718683de",
360 "zulu9.0.7.1-jdk9.0.7-win_x64-allmodules.zip": "e738829017f107e7a7cd5069db979398ec3c3f03ef56122f89ba38e7374f63ed",
361 "jdk9-server-release-1708.tar.xz": "72e7843902b0395e2d30e1e9ad2a5f05f36a4bc62529828bcbc698d54aec6022",
362 "zulu10.2+3-jdk10.0.1-linux_x64-allmodules.tar.gz": "57fad3602e74c79587901d6966d3b54ef32cb811829a2552163185d5064fe9b5",
363 "zulu10.2+3-jdk10.0.1-macosx_x64-allmodules.tar.gz": "e669c9a897413d855b550b4e39d79614392e6fb96f494e8ef99a34297d9d85d3",
364 "zulu10.2+3-jdk10.0.1-win_x64-allmodules.zip": "c39e7700a8d41794d60985df5a20352435196e78ecbc6a2b30df7be8637bffd5",
365 "jdk10-server-release-1804.tar.xz": "b7098b7aaf6ee1ffd4a2d0371a0be26c5a5c87f6aebbe46fe9a92c90583a84be",
iirinaebdbdcd2019-04-09 04:43:08 -0700366 "java_tools_javac10_linux-x86_64-v2.1.zip": "9163c9963f31e10101d538163c435db9534baf9db63d380508311b775fbe3c37",
367 "java_tools_javac10_windows-x86_64-v2.1.zip": "a7a99e34213eb80384b81dda0217582a38f876f420c7b648900f254bf9ea3bd7",
368 "java_tools_javac10_darwin-v2.1.zip": "5f6a7abf7ec0c491dc2d0b15add6a2abb594e31809f4cabc2cfde41efa995f92",
iirinaec2b0802019-04-09 10:43:48 -0700369 "coverage_output_generator-v1.0.zip": "cc470e529fafb6165b5be3929ff2d99b38429b386ac100878687416603a67889",
philwo75edd782019-01-29 05:02:44 -0800370 "zulu11.2.3-jdk11.0.1-linux_x64.tar.gz": "232b1c3511f0d26e92582b7c3cc363be7ac633e371854ca2f2e9f2b50eb72a75",
371 "zulu11.2.3-jdk11.0.1-macosx_x64.tar.gz": "1edf366ee821e5db8e348152fcb337b28dfd6bf0f97943c270dcc6747cedb6cb",
372 "zulu11.2.3-jdk11.0.1-win_x64.zip": "8e1e2b8347de6746f3fd1538840dd643201533ab113abc4ed93678e342d28aa3",
Tobias Werth00680552019-02-03 02:17:41 -0800373 "zulu11.29.3-ca-jdk11.0.2-linux_x64.tar.gz": "f3f44b6235508e87b760bf37a49e186cc1fa4e9cd28384c4dbf5a33991921e08",
374 "zulu11.29.3-ca-jdk11.0.2-macosx_x64.zip": "059f8e3484bf07b63a8f2820d5f528f473eff1befdb1896ee4f8ff06be3b8d8f",
375 "zulu11.29.3-ca-jdk11.0.2-win_x64.zip": "e1f5b4ce1b9148140fae2fcfb8a96d1c9b7eac5b8df0e13fbcad9b8561284880",
Jingwen Chen186929e2019-04-02 10:38:30 -0700376 "android_tools_pkg-0.1.tar.gz": "b71b10e8f067dd6bff446fb0d49239fe28b12cfd1ed24278d04b06cf54669862",
philwo75edd782019-01-29 05:02:44 -0800377 },
378 urls = {
379 "zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules.tar.gz"],
380 "zulu9.0.7.1-jdk9.0.7-macosx_x64-allmodules.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-macosx_x64-allmodules.tar.gz"],
381 "zulu9.0.7.1-jdk9.0.7-win_x64-allmodules.zip": ["https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-win_x64-allmodules.zip"],
382 "jdk9-server-release-1708.tar.xz": ["https://mirror.bazel.build/openjdk.linaro.org/releases/jdk9-server-release-1708.tar.xz"],
383 "zulu10.2+3-jdk10.0.1-linux_x64-allmodules.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu10.2+3-jdk10.0.1/zulu10.2+3-jdk10.0.1-linux_x64-allmodules.tar.gz"],
384 "zulu10.2+3-jdk10.0.1-macosx_x64-allmodules.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu10.2+3-jdk10.0.1/zulu10.2+3-jdk10.0.1-macosx_x64-allmodules.tar.gz"],
385 "zulu10.2+3-jdk10.0.1-win_x64-allmodules.zip": ["https://mirror.bazel.build/openjdk/azul-zulu10.2+3-jdk10.0.1/zulu10.2+3-jdk10.0.1-win_x64-allmodules.zip"],
386 "jdk10-server-release-1804.tar.xz": ["https://mirror.bazel.build/openjdk.linaro.org/releases/jdk10-server-release-1804.tar.xz"],
iirinaebdbdcd2019-04-09 04:43:08 -0700387 "java_tools_javac10_linux-x86_64-v2.1.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/java_tools_javac10_linux-x86_64-v2.1.zip"],
388 "java_tools_javac10_windows-x86_64-v2.1.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/java_tools_javac10_windows-x86_64-v2.1.zip"],
389 "java_tools_javac10_darwin-v2.1.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/java_tools_javac10_darwin-v2.1.zip"],
iirinaec2b0802019-04-09 10:43:48 -0700390 "coverage_output_generator-v1.0.zip": ["https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v1.0.zip"],
philwo75edd782019-01-29 05:02:44 -0800391 "zulu11.2.3-jdk11.0.1-linux_x64.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu11.2.3-jdk11.0.1/zulu11.2.3-jdk11.0.1-linux_x64.tar.gz"],
392 "zulu11.2.3-jdk11.0.1-macosx_x64.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu11.2.3-jdk11.0.1/zulu11.2.3-jdk11.0.1-macosx_x64.tar.gz"],
393 "zulu11.2.3-jdk11.0.1-win_x64.zip": ["https://mirror.bazel.build/openjdk/azul-zulu11.2.3-jdk11.0.1/zulu11.2.3-jdk11.0.1-win_x64.zip"],
Tobias Werth00680552019-02-03 02:17:41 -0800394 "zulu11.29.3-ca-jdk11.0.2-linux_x64.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-linux_x64.tar.gz"],
395 "zulu11.29.3-ca-jdk11.0.2-macosx_x64.zip": ["https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-macosx_x64.zip"],
396 "zulu11.29.3-ca-jdk11.0.2-win_x64.zip": ["https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-win_x64.zip"],
Jingwen Chen186929e2019-04-02 10:38:30 -0700397 "android_tools_pkg-0.1.tar.gz": [
398 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.1.tar.gz",
399 ],
philwo75edd782019-01-29 05:02:44 -0800400 },
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700401)
Jingwen Chen186bdcd2018-12-14 10:27:23 -0800402
403load("//scripts/docs:doc_versions.bzl", "DOC_VERSIONS")
404
405[http_file(
406 name = "jekyll_tree_%s" % DOC_VERSION["version"].replace(".", "_"),
407 sha256 = DOC_VERSION["sha256"],
408 urls = ["https://mirror.bazel.build/bazel_versioned_docs/jekyll-tree-%s.tar" % DOC_VERSION["version"]],
409) for DOC_VERSION in DOC_VERSIONS]
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700410
411# Skydoc recommends declaring its dependencies via "*_dependencies" functions.
412# This requires that the repositories these functions come from need to be
413# fetched unconditionally for everything (including just building bazel!), so
414# provide them as http_archives that can be shiped in the distdir, to keep the
415# distribution archive self-contained.
416http_archive(
417 name = "io_bazel_rules_sass",
iirinaf5c334262019-03-19 02:44:59 -0700418 sha256 = "d868ce50d592ef4aad7dec4dd32ae68d2151261913450fac8390b3fd474bb898",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700419 strip_prefix = "rules_sass-8ccf4f1c351928b55d5dddf3672e3667f6978d60",
420 urls = [
hlopko6b06acc2019-03-25 04:40:10 -0700421 "https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/8ccf4f1c351928b55d5dddf3672e3667f6978d60.tar.gz",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700422 "https://github.com/bazelbuild/rules_sass/archive/8ccf4f1c351928b55d5dddf3672e3667f6978d60.tar.gz",
423 ],
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700424)
iirinaf5c334262019-03-19 02:44:59 -0700425
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700426http_archive(
427 name = "build_bazel_rules_nodejs",
iirinaf5c334262019-03-19 02:44:59 -0700428 sha256 = "9b72bb0aea72d7cbcfc82a01b1e25bf3d85f791e790ddec16c65e2d906382ee0",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700429 strip_prefix = "rules_nodejs-0.16.2",
430 urls = [
hlopko6b06acc2019-03-25 04:40:10 -0700431 "https://mirror.bazel.build/github.com/bazelbuild/rules_nodejs/archive/0.16.2.zip",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700432 "https://github.com/bazelbuild/rules_nodejs/archive/0.16.2.zip",
433 ],
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700434)
435
iirina93e80732019-04-16 02:07:40 -0700436load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
437git_repository(
438 name = "java_tools_langtools_javac9",
439 branch = "langtools_javac9",
440 remote = "https://github.com/bazelbuild/java_tools.git",
441)
442
443git_repository(
444 name = "java_tools_langtools_javac10",
445 branch = "langtools_javac10",
446 remote = "https://github.com/bazelbuild/java_tools.git",
447)
448
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700449load("@io_bazel_skydoc//:setup.bzl", "skydoc_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700450
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700451skydoc_repositories()
452
453load("@io_bazel_rules_sass//:package.bzl", "rules_sass_dependencies")
iirinaf5c334262019-03-19 02:44:59 -0700454
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700455rules_sass_dependencies()
456
457load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700458
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700459node_repositories()
460
461load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700462
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700463sass_repositories()
Jakob Buchgraber593c5302019-04-16 10:12:20 -0700464
465register_execution_platforms("//:default_host_platform"); # buildozer: disable=positional-args