Kristina Chodorow | 93fbc3e | 2016-04-27 17:03:28 +0000 | [diff] [blame] | 1 | workspace(name = "io_bazel") |
Klaus Aehlig | a55714c | 2018-10-23 02:16:02 -0700 | [diff] [blame] | 2 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") |
Kristina Chodorow | 93fbc3e | 2016-04-27 17:03:28 +0000 | [diff] [blame] | 3 | |
David Chen | b78bbd5 | 2016-03-16 13:17:57 +0000 | [diff] [blame] | 4 | # Protobuf expects an //external:python_headers label which would contain the |
| 5 | # Python headers if fast Python protos is enabled. Since we are not using fast |
| 6 | # Python protos, bind python_headers to a dummy target. |
| 7 | bind( |
| 8 | name = "python_headers", |
| 9 | actual = "//:dummy", |
| 10 | ) |
| 11 | |
Alpha Lam | a1a79cb | 2016-05-15 19:13:52 +0000 | [diff] [blame] | 12 | # Protobuf code generation for GRPC requires three external labels: |
| 13 | # //external:grpc-java_plugin |
| 14 | # //external:grpc-jar |
| 15 | # //external:guava |
| 16 | bind( |
| 17 | name = "grpc-java-plugin", |
| 18 | actual = "//third_party/grpc:grpc-java-plugin", |
| 19 | ) |
| 20 | |
| 21 | bind( |
| 22 | name = "grpc-jar", |
| 23 | actual = "//third_party/grpc:grpc-jar", |
| 24 | ) |
| 25 | |
| 26 | bind( |
| 27 | name = "guava", |
| 28 | actual = "//third_party:guava", |
| 29 | ) |
| 30 | |
Jakob Buchgraber | 6e12e65 | 2017-05-02 11:53:15 +0200 | [diff] [blame] | 31 | # Used by //third_party/protobuf:protobuf_python |
| 32 | bind( |
| 33 | name = "six", |
| 34 | actual = "//third_party/py/six", |
| 35 | ) |
| 36 | |
Googler | 5b90b16 | 2017-08-31 16:29:34 +0200 | [diff] [blame] | 37 | http_archive( |
| 38 | name = "bazel_j2objc", |
Laszlo Csomor | 0f3f788 | 2018-03-13 06:56:12 -0700 | [diff] [blame] | 39 | # Computed using "shasum -a 256 j2objc-2.0.3.zip" |
| 40 | sha256 = "a36bac432d0dbd8c98249e484b2b69dd5720afa4abb58711a3c3def1c0bfa21d", |
Googler | 5b90b16 | 2017-08-31 16:29:34 +0200 | [diff] [blame] | 41 | strip_prefix = "j2objc-2.0.3", |
cushon | b664623 | 2018-09-07 01:44:10 -0700 | [diff] [blame] | 42 | url = "https://github.com/google/j2objc/releases/download/2.0.3/j2objc-2.0.3.zip", |
Googler | 5b90b16 | 2017-08-31 16:29:34 +0200 | [diff] [blame] | 43 | ) |
| 44 | |
Damien Martin-Guillerez | 0baff0f | 2017-08-22 17:40:37 +0200 | [diff] [blame] | 45 | # For src/test/shell/bazel:test_srcs |
| 46 | load("//src/test/shell/bazel:list_source_repository.bzl", "list_source_repository") |
cushon | b664623 | 2018-09-07 01:44:10 -0700 | [diff] [blame] | 47 | |
Damien Martin-Guillerez | 0baff0f | 2017-08-22 17:40:37 +0200 | [diff] [blame] | 48 | list_source_repository(name = "local_bazel_source_list") |
| 49 | |
Adam Michael | 9b7330f | 2017-03-23 18:40:51 +0000 | [diff] [blame] | 50 | # To run the Android integration tests in //src/test/shell/bazel/android:all or |
| 51 | # build the Android sample app in //examples/android/java/bazel:hello_world |
| 52 | # |
| 53 | # 1. Install an Android SDK and NDK from https://developer.android.com |
| 54 | # 2. Set the $ANDROID_HOME and $ANDROID_NDK_HOME environment variables |
| 55 | # 3. Uncomment the two lines below |
| 56 | # |
| 57 | # android_sdk_repository(name = "androidsdk") |
| 58 | # android_ndk_repository(name = "androidndk") |
Cal Peyser | 2152bc1 | 2016-04-22 17:08:59 +0000 | [diff] [blame] | 59 | |
Adam Michael | 8a136d8 | 2016-11-16 23:04:46 +0000 | [diff] [blame] | 60 | # In order to run //src/test/shell/bazel:maven_skylark_test, follow the |
| 61 | # instructions above for the Android integration tests and uncomment the |
| 62 | # following lines: |
| 63 | # load("//tools/build_defs/repo:maven_rules.bzl", "maven_dependency_plugin") |
| 64 | # maven_dependency_plugin() |
| 65 | |
Cal Peyser | 2152bc1 | 2016-04-22 17:08:59 +0000 | [diff] [blame] | 66 | # This allows rules written in skylark to locate apple build tools. |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 67 | bind( |
| 68 | name = "xcrunwrapper", |
| 69 | actual = "@bazel_tools//tools/objc:xcrunwrapper", |
| 70 | ) |
Carmi Grushko | bfaff29 | 2016-08-17 18:37:55 +0000 | [diff] [blame] | 71 | |
Jakob Buchgraber | 8ff0d0d | 2017-04-14 21:16:19 +0200 | [diff] [blame] | 72 | new_local_repository( |
Carmi Grushko | 0fd73d6 | 2017-02-17 06:49:40 +0000 | [diff] [blame] | 73 | name = "com_google_protobuf", |
hlopko | ead1002 | 2018-09-05 05:37:23 -0700 | [diff] [blame] | 74 | build_file = "./third_party/protobuf/3.6.1/BUILD", |
| 75 | path = "./third_party/protobuf/3.6.1/", |
Carmi Grushko | 0fd73d6 | 2017-02-17 06:49:40 +0000 | [diff] [blame] | 76 | ) |
| 77 | |
John Cater | 2f83892 | 2018-11-12 08:19:03 -0800 | [diff] [blame] | 78 | local_repository( |
Jakob Buchgraber | 166f28c | 2017-05-30 16:41:18 +0200 | [diff] [blame] | 79 | name = "googleapis", |
cushon | b664623 | 2018-09-07 01:44:10 -0700 | [diff] [blame] | 80 | path = "./third_party/googleapis/", |
Jakob Buchgraber | 166f28c | 2017-05-30 16:41:18 +0200 | [diff] [blame] | 81 | ) |
| 82 | |
John Cater | 2f83892 | 2018-11-12 08:19:03 -0800 | [diff] [blame] | 83 | local_repository( |
Ola Rozenfeld | 930119a | 2018-08-10 11:04:44 -0700 | [diff] [blame] | 84 | name = "remoteapis", |
cushon | b664623 | 2018-09-07 01:44:10 -0700 | [diff] [blame] | 85 | path = "./third_party/remoteapis/", |
Ola Rozenfeld | 930119a | 2018-08-10 11:04:44 -0700 | [diff] [blame] | 86 | ) |
| 87 | |
kmb | bfd89d6 | 2018-04-11 14:26:56 -0700 | [diff] [blame] | 88 | http_archive( |
| 89 | name = "desugar_jdk_libs", |
Klaus Aehlig | d4a8a47 | 2018-12-06 07:34:02 -0800 | [diff] [blame] | 90 | # Commit e0b0291b2c51fbe5a7cfa14473a1ae850f94f021 of 2018-12-4 |
kmb | bfd89d6 | 2018-04-11 14:26:56 -0700 | [diff] [blame] | 91 | # Computed using "shasum -a 256 <zip>" |
kmb | a964125 | 2018-12-05 13:17:58 -0800 | [diff] [blame] | 92 | sha256 = "fe2e04f91ce8c59d49d91b8102edc6627c6fa2906c1b0e7346f01419ec4f419d", |
| 93 | strip_prefix = "desugar_jdk_libs-e0b0291b2c51fbe5a7cfa14473a1ae850f94f021", |
philwo | f443d09 | 2019-01-08 11:11:09 -0800 | [diff] [blame] | 94 | urls = [ |
| 95 | "https://mirror.bazel.build/github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip", |
| 96 | "https://github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip", |
| 97 | ] |
kmb | bfd89d6 | 2018-04-11 14:26:56 -0700 | [diff] [blame] | 98 | ) |
| 99 | |
Klaus Aehlig | 3c9cd82 | 2018-05-24 03:35:42 -0700 | [diff] [blame] | 100 | load("//:distdir.bzl", "distdir_tar") |
cushon | b664623 | 2018-09-07 01:44:10 -0700 | [diff] [blame] | 101 | |
Klaus Aehlig | 3c9cd82 | 2018-05-24 03:35:42 -0700 | [diff] [blame] | 102 | distdir_tar( |
| 103 | name = "additional_distfiles", |
Klaus Aehlig | dbe05df | 2018-12-06 06:00:49 -0800 | [diff] [blame] | 104 | # Keep in sync with the archives fetched as part of building bazel |
cparsons | 871cd6f | 2018-08-16 09:10:38 -0700 | [diff] [blame] | 105 | archives = [ |
Klaus Aehlig | d4a8a47 | 2018-12-06 07:34:02 -0800 | [diff] [blame] | 106 | "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip", |
Klaus Aehlig | dbe05df | 2018-12-06 06:00:49 -0800 | [diff] [blame] | 107 | "f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz", |
cparsons | 871cd6f | 2018-08-16 09:10:38 -0700 | [diff] [blame] | 108 | ], |
cushon | b664623 | 2018-09-07 01:44:10 -0700 | [diff] [blame] | 109 | dirname = "derived/distdir", |
Klaus Aehlig | 3c9cd82 | 2018-05-24 03:35:42 -0700 | [diff] [blame] | 110 | sha256 = { |
Klaus Aehlig | d4a8a47 | 2018-12-06 07:34:02 -0800 | [diff] [blame] | 111 | "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip": "fe2e04f91ce8c59d49d91b8102edc6627c6fa2906c1b0e7346f01419ec4f419d", |
Klaus Aehlig | dbe05df | 2018-12-06 06:00:49 -0800 | [diff] [blame] | 112 | "f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz": "ba5d15ca230efca96320085d8e4d58da826d1f81b444ef8afccd8b23e0799b52", |
cushon | b664623 | 2018-09-07 01:44:10 -0700 | [diff] [blame] | 113 | }, |
| 114 | urls = { |
Klaus Aehlig | d4a8a47 | 2018-12-06 07:34:02 -0800 | [diff] [blame] | 115 | "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip": ["https://github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip"], |
Klaus Aehlig | dbe05df | 2018-12-06 06:00:49 -0800 | [diff] [blame] | 116 | "f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz": ["https://github.com/bazelbuild/bazel-skylib/archive/f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz"], |
cushon | b664623 | 2018-09-07 01:44:10 -0700 | [diff] [blame] | 117 | }, |
Klaus Aehlig | 3c9cd82 | 2018-05-24 03:35:42 -0700 | [diff] [blame] | 118 | ) |
| 119 | |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 120 | # OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK. |
| 121 | http_file( |
| 122 | name = "openjdk_linux", |
buchgr | 9d81cf7 | 2018-12-03 08:38:40 -0800 | [diff] [blame] | 123 | sha256 = "f27cb933de4f9e7fe9a703486cf44c84bc8e9f138be0c270c9e5716a32367e87", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 124 | urls = [ |
buchgr | 9d81cf7 | 2018-12-03 08:38:40 -0800 | [diff] [blame] | 125 | "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", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 126 | ], |
Klaus Aehlig | a55714c | 2018-10-23 02:16:02 -0700 | [diff] [blame] | 127 | downloaded_file_path="zulu-linux.tar.gz", |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 128 | ) |
| 129 | |
Tobias Werth | 218e8f6 | 2018-12-13 04:44:35 -0800 | [diff] [blame] | 130 | http_file( |
| 131 | name = "openjdk_linux_vanilla", |
| 132 | sha256 = "45f2dfbee93b91b1468cf81d843fc6d9a47fef1f831c0b7ceff4f1eb6e6851c8", |
| 133 | urls = [ |
| 134 | "https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-linux_x64.tar.gz", |
| 135 | ], |
| 136 | downloaded_file_path="zulu-linux-vanilla.tar.gz", |
| 137 | ) |
| 138 | |
Tobias Werth | fbf8fb9 | 2019-01-09 11:22:11 -0800 | [diff] [blame] | 139 | http_file( |
| 140 | name = "openjdk_linux_minimal", |
Tobias Werth | 702bfe7 | 2019-01-17 05:07:42 -0800 | [diff] [blame] | 141 | sha256 = "944b9d7fdd4ccedb78c32ee8030b0745b67aa1e84e6ad55f259af8e29f609112", |
Tobias Werth | fbf8fb9 | 2019-01-09 11:22:11 -0800 | [diff] [blame] | 142 | urls = [ |
Tobias Werth | 702bfe7 | 2019-01-17 05:07:42 -0800 | [diff] [blame] | 143 | "https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-linux_x64-minimal-e72607133f91bceca8b67d6d5037aa6fbebef7b9-1547657682.tar.gz", |
Tobias Werth | fbf8fb9 | 2019-01-09 11:22:11 -0800 | [diff] [blame] | 144 | ], |
| 145 | downloaded_file_path="zulu-linux-minimal.tar.gz", |
| 146 | ) |
| 147 | |
philwo | 54c2572 | 2018-10-02 05:41:00 -0700 | [diff] [blame] | 148 | # Used by CI to test Bazel on platforms without an installed system JDK. |
| 149 | # TODO(twerth): Migrate to @remotejdk when https://github.com/bazelbuild/bazel/pull/6216 is merged. |
Klaus Aehlig | a55714c | 2018-10-23 02:16:02 -0700 | [diff] [blame] | 150 | http_archive( |
philwo | 54c2572 | 2018-10-02 05:41:00 -0700 | [diff] [blame] | 151 | name = "openjdk_linux_archive", |
| 152 | sha256 = "f27cb933de4f9e7fe9a703486cf44c84bc8e9f138be0c270c9e5716a32367e87", |
| 153 | urls = [ |
| 154 | "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", |
| 155 | ], |
| 156 | strip_prefix = "zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules", |
| 157 | build_file_content = "java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])", |
| 158 | ) |
| 159 | |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 160 | http_file( |
| 161 | name = "openjdk_macos", |
buchgr | 9d81cf7 | 2018-12-03 08:38:40 -0800 | [diff] [blame] | 162 | sha256 = "404e7058ff91f956612f47705efbee8e175a38b505fb1b52d8c1ea98718683de", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 163 | urls = [ |
buchgr | 9d81cf7 | 2018-12-03 08:38:40 -0800 | [diff] [blame] | 164 | "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", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 165 | ], |
Klaus Aehlig | a55714c | 2018-10-23 02:16:02 -0700 | [diff] [blame] | 166 | downloaded_file_path="zulu-macos.tar.gz", |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 167 | ) |
| 168 | |
| 169 | http_file( |
Tobias Werth | 218e8f6 | 2018-12-13 04:44:35 -0800 | [diff] [blame] | 170 | name = "openjdk_macos_vanilla", |
| 171 | sha256 = "5a5b3225b86d3fdb51e9add5335f43cc19c6b2d9b8b5558e72b52d7b2ce9162e", |
| 172 | urls = [ |
| 173 | "https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-macosx_x64.tar.gz", |
| 174 | ], |
| 175 | downloaded_file_path="zulu-macos-vanilla.tar.gz", |
| 176 | ) |
| 177 | |
| 178 | http_file( |
Tobias Werth | fbf8fb9 | 2019-01-09 11:22:11 -0800 | [diff] [blame] | 179 | name = "openjdk_macos_minimal", |
Tobias Werth | 702bfe7 | 2019-01-17 05:07:42 -0800 | [diff] [blame] | 180 | sha256 = "68e810c49412753a2d39121979f34c645112bbeff18d6c962a8f5f74203eade9", |
Tobias Werth | fbf8fb9 | 2019-01-09 11:22:11 -0800 | [diff] [blame] | 181 | urls = [ |
Tobias Werth | 702bfe7 | 2019-01-17 05:07:42 -0800 | [diff] [blame] | 182 | "https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-macosx_x64-minimal-e72607133f91bceca8b67d6d5037aa6fbebef7b9-1547657778.tar.gz", |
Tobias Werth | fbf8fb9 | 2019-01-09 11:22:11 -0800 | [diff] [blame] | 183 | ], |
| 184 | downloaded_file_path="zulu-macos-minimal.tar.gz", |
| 185 | ) |
| 186 | |
| 187 | http_file( |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 188 | name = "openjdk_win", |
buchgr | 9d81cf7 | 2018-12-03 08:38:40 -0800 | [diff] [blame] | 189 | sha256 = "e738829017f107e7a7cd5069db979398ec3c3f03ef56122f89ba38e7374f63ed", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 190 | urls = [ |
buchgr | 9d81cf7 | 2018-12-03 08:38:40 -0800 | [diff] [blame] | 191 | "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", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 192 | ], |
Klaus Aehlig | a55714c | 2018-10-23 02:16:02 -0700 | [diff] [blame] | 193 | downloaded_file_path="zulu-win.zip", |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 194 | ) |
Googler | 5f36bf8 | 2017-07-12 20:43:08 +0200 | [diff] [blame] | 195 | |
Tobias Werth | 218e8f6 | 2018-12-13 04:44:35 -0800 | [diff] [blame] | 196 | http_file( |
| 197 | name = "openjdk_win_vanilla", |
| 198 | sha256 = "75f76c53c6a1f12b1a571b86bd9708ab75adf582d689dddc94fdd77dcc0f3f5c", |
| 199 | urls = [ |
| 200 | "https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-win_x64.zip", |
| 201 | ], |
| 202 | downloaded_file_path="zulu-win-vanilla.zip", |
| 203 | ) |
| 204 | |
Tobias Werth | fbf8fb9 | 2019-01-09 11:22:11 -0800 | [diff] [blame] | 205 | http_file( |
| 206 | name = "openjdk_win_minimal", |
Tobias Werth | 702bfe7 | 2019-01-17 05:07:42 -0800 | [diff] [blame] | 207 | sha256 = "a6e94b5ee98972cb39fb380f3bc8ba411a94f48619a57d673e1bc0f88f791b15", |
Tobias Werth | fbf8fb9 | 2019-01-09 11:22:11 -0800 | [diff] [blame] | 208 | urls = [ |
Tobias Werth | 702bfe7 | 2019-01-17 05:07:42 -0800 | [diff] [blame] | 209 | "https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-win_x64-minimal-e72607133f91bceca8b67d6d5037aa6fbebef7b9-1547657694.zip", |
Tobias Werth | fbf8fb9 | 2019-01-09 11:22:11 -0800 | [diff] [blame] | 210 | ], |
| 211 | downloaded_file_path="zulu-win-minimal.zip", |
| 212 | ) |
| 213 | |
Arielle Albon | fa7e49f | 2018-07-31 00:57:54 -0700 | [diff] [blame] | 214 | # The source-code for this OpenJDK can be found at: |
lberki | 7eb9ea1 | 2018-09-07 04:01:48 -0700 | [diff] [blame] | 215 | # https://openjdk.linaro.org/releases/jdk9-src-1708.tar.xz |
Arielle Albon | fa7e49f | 2018-07-31 00:57:54 -0700 | [diff] [blame] | 216 | http_file( |
| 217 | name = "openjdk_linux_aarch64", |
lberki | 7eb9ea1 | 2018-09-07 04:01:48 -0700 | [diff] [blame] | 218 | sha256 = "72e7843902b0395e2d30e1e9ad2a5f05f36a4bc62529828bcbc698d54aec6022", |
Arielle Albon | fa7e49f | 2018-07-31 00:57:54 -0700 | [diff] [blame] | 219 | urls = [ |
| 220 | # When you update this, also update the link to the source-code above. |
philwo | 6ebc71f | 2018-10-23 11:57:09 -0700 | [diff] [blame] | 221 | "https://mirror.bazel.build/openjdk.linaro.org/releases/jdk9-server-release-1708.tar.xz", |
lberki | 7eb9ea1 | 2018-09-07 04:01:48 -0700 | [diff] [blame] | 222 | "http://openjdk.linaro.org/releases/jdk9-server-release-1708.tar.xz", |
Arielle Albon | fa7e49f | 2018-07-31 00:57:54 -0700 | [diff] [blame] | 223 | ], |
| 224 | ) |
| 225 | |
Googler | 5f36bf8 | 2017-07-12 20:43:08 +0200 | [diff] [blame] | 226 | http_archive( |
philwo | b495eaf | 2018-08-28 04:00:46 -0700 | [diff] [blame] | 227 | name = "bazel_toolchains", |
buchgr | 9e5ab48 | 2018-12-07 05:23:37 -0800 | [diff] [blame] | 228 | sha256 = "07a81ee03f5feae354c9f98c884e8e886914856fb2b6a63cba4619ef10aaaf0b", |
| 229 | strip_prefix = "bazel-toolchains-31b5dc8c4e9c7fd3f5f4d04c6714f2ce87b126c1", |
philwo | b495eaf | 2018-08-28 04:00:46 -0700 | [diff] [blame] | 230 | urls = [ |
buchgr | 9e5ab48 | 2018-12-07 05:23:37 -0800 | [diff] [blame] | 231 | "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/31b5dc8c4e9c7fd3f5f4d04c6714f2ce87b126c1.tar.gz", |
| 232 | "https://github.com/bazelbuild/bazel-toolchains/archive/31b5dc8c4e9c7fd3f5f4d04c6714f2ce87b126c1.tar.gz", |
philwo | b495eaf | 2018-08-28 04:00:46 -0700 | [diff] [blame] | 233 | ], |
Googler | 5f36bf8 | 2017-07-12 20:43:08 +0200 | [diff] [blame] | 234 | ) |
ccalvarin | 1cbe62a | 2017-08-14 21:09:07 +0200 | [diff] [blame] | 235 | |
ccalvarin | 7383976 | 2018-03-23 15:35:00 -0700 | [diff] [blame] | 236 | # We're pinning to a commit because this project does not have a recent release. |
| 237 | # Nothing special about this commit, though. |
ccalvarin | 8e9f4a8 | 2018-03-23 08:19:37 -0700 | [diff] [blame] | 238 | http_archive( |
| 239 | name = "com_google_googletest", |
Loo Rong Jie | e94aa22 | 2018-10-15 01:27:08 -0700 | [diff] [blame] | 240 | sha256 = "0fb00ff413f6b9b80ccee44a374ca7a18af7315aea72a43c62f2acd1ca74e9b5", |
| 241 | strip_prefix = "googletest-f13bbe2992d188e834339abe6f715b2b2f840a77", |
ccalvarin | 8e9f4a8 | 2018-03-23 08:19:37 -0700 | [diff] [blame] | 242 | urls = [ |
Loo Rong Jie | e94aa22 | 2018-10-15 01:27:08 -0700 | [diff] [blame] | 243 | "https://github.com/google/googletest/archive/f13bbe2992d188e834339abe6f715b2b2f840a77.tar.gz", |
ccalvarin | 8e9f4a8 | 2018-03-23 08:19:37 -0700 | [diff] [blame] | 244 | ], |
ccalvarin | 8e9f4a8 | 2018-03-23 08:19:37 -0700 | [diff] [blame] | 245 | ) |
| 246 | |
cparsons | 871cd6f | 2018-08-16 09:10:38 -0700 | [diff] [blame] | 247 | http_archive( |
| 248 | name = "bazel_skylib", |
Klaus Aehlig | dbe05df | 2018-12-06 06:00:49 -0800 | [diff] [blame] | 249 | # Commit f83cb8dd6f5658bc574ccd873e25197055265d1c of 2018-11-26 |
cparsons | 48b672c | 2018-11-29 15:01:32 -0800 | [diff] [blame] | 250 | sha256 = "ba5d15ca230efca96320085d8e4d58da826d1f81b444ef8afccd8b23e0799b52", |
| 251 | strip_prefix = "bazel-skylib-f83cb8dd6f5658bc574ccd873e25197055265d1c", |
cparsons | 871cd6f | 2018-08-16 09:10:38 -0700 | [diff] [blame] | 252 | urls = [ |
cparsons | 48b672c | 2018-11-29 15:01:32 -0800 | [diff] [blame] | 253 | "https://github.com/bazelbuild/bazel-skylib/archive/f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz", |
cparsons | 871cd6f | 2018-08-16 09:10:38 -0700 | [diff] [blame] | 254 | ], |
cparsons | 871cd6f | 2018-08-16 09:10:38 -0700 | [diff] [blame] | 255 | ) |
cparsons | a5be661 | 2018-08-27 13:21:21 -0700 | [diff] [blame] | 256 | |
| 257 | http_archive( |
| 258 | name = "skydoc", |
cparsons | 48b672c | 2018-11-29 15:01:32 -0800 | [diff] [blame] | 259 | sha256 = "4db9fc4f5f69c220816c6d0b16e9956e7da2be8c85e83793661c0f4723e88d81", |
| 260 | strip_prefix = "skydoc-7a08959b9d00c9ba592c1a1db145dffcf6c0b6bf", |
cparsons | a5be661 | 2018-08-27 13:21:21 -0700 | [diff] [blame] | 261 | urls = [ |
cparsons | 48b672c | 2018-11-29 15:01:32 -0800 | [diff] [blame] | 262 | "https://github.com/bazelbuild/skydoc/archive/7a08959b9d00c9ba592c1a1db145dffcf6c0b6bf.tar.gz", |
cparsons | a5be661 | 2018-08-27 13:21:21 -0700 | [diff] [blame] | 263 | ], |
cparsons | a5be661 | 2018-08-27 13:21:21 -0700 | [diff] [blame] | 264 | ) |
Klaus Aehlig | acafe5a | 2018-10-24 03:16:42 -0700 | [diff] [blame] | 265 | |
| 266 | # For testing, have an distdir_tar with all the archives implicit in every |
| 267 | # WORKSPACE, to that they don't have to be refetched for every test |
| 268 | # calling `bazel sync`. |
| 269 | distdir_tar( |
| 270 | name = "jdk_WORKSPACE_files", |
| 271 | archives = [ |
| 272 | "zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules.tar.gz", |
| 273 | "zulu9.0.7.1-jdk9.0.7-macosx_x64-allmodules.tar.gz", |
| 274 | "zulu9.0.7.1-jdk9.0.7-win_x64-allmodules.zip", |
| 275 | "jdk9-server-release-1708.tar.xz", |
| 276 | "zulu10.2+3-jdk10.0.1-linux_x64-allmodules.tar.gz", |
| 277 | "zulu10.2+3-jdk10.0.1-macosx_x64-allmodules.tar.gz", |
| 278 | "zulu10.2+3-jdk10.0.1-win_x64-allmodules.zip", |
| 279 | "jdk10-server-release-1804.tar.xz", |
cushon | f34ad0e | 2019-01-23 13:35:06 -0800 | [diff] [blame] | 280 | "java_tools_pkg-0.1.tar.gz", |
| 281 | "zulu11.2.3-jdk11.0.1-linux_x64.tar.gz", |
| 282 | "zulu11.2.3-jdk11.0.1-macosx_x64.tar.gz", |
| 283 | "zulu11.2.3-jdk11.0.1-win_x64.zip", |
Klaus Aehlig | acafe5a | 2018-10-24 03:16:42 -0700 | [diff] [blame] | 284 | ], |
| 285 | dirname = "jdk_WORKSPACE/distdir", |
| 286 | sha256 = { |
| 287 | "zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules.tar.gz" : "f27cb933de4f9e7fe9a703486cf44c84bc8e9f138be0c270c9e5716a32367e87", |
| 288 | "zulu9.0.7.1-jdk9.0.7-macosx_x64-allmodules.tar.gz" : "404e7058ff91f956612f47705efbee8e175a38b505fb1b52d8c1ea98718683de", |
| 289 | "zulu9.0.7.1-jdk9.0.7-win_x64-allmodules.zip" : "e738829017f107e7a7cd5069db979398ec3c3f03ef56122f89ba38e7374f63ed", |
| 290 | "jdk9-server-release-1708.tar.xz" : "72e7843902b0395e2d30e1e9ad2a5f05f36a4bc62529828bcbc698d54aec6022", |
| 291 | "zulu10.2+3-jdk10.0.1-linux_x64-allmodules.tar.gz" : "57fad3602e74c79587901d6966d3b54ef32cb811829a2552163185d5064fe9b5", |
| 292 | "zulu10.2+3-jdk10.0.1-macosx_x64-allmodules.tar.gz" : "e669c9a897413d855b550b4e39d79614392e6fb96f494e8ef99a34297d9d85d3", |
| 293 | "zulu10.2+3-jdk10.0.1-win_x64-allmodules.zip" : "c39e7700a8d41794d60985df5a20352435196e78ecbc6a2b30df7be8637bffd5", |
| 294 | "jdk10-server-release-1804.tar.xz" : "b7098b7aaf6ee1ffd4a2d0371a0be26c5a5c87f6aebbe46fe9a92c90583a84be", |
iirina | 22d375b | 2019-01-21 04:44:29 -0800 | [diff] [blame] | 295 | "java_tools_pkg-0.1.tar.gz": "df33ddb3054f0ee70389368bd1dc2efe72eeb1f489dbcdf948f3f3b3058646b7", |
cushon | f34ad0e | 2019-01-23 13:35:06 -0800 | [diff] [blame] | 296 | "zulu11.2.3-jdk11.0.1-linux_x64.tar.gz": "232b1c3511f0d26e92582b7c3cc363be7ac633e371854ca2f2e9f2b50eb72a75", |
| 297 | "zulu11.2.3-jdk11.0.1-macosx_x64.tar.gz": "1edf366ee821e5db8e348152fcb337b28dfd6bf0f97943c270dcc6747cedb6cb", |
| 298 | "zulu11.2.3-jdk11.0.1-win_x64.zip": "8e1e2b8347de6746f3fd1538840dd643201533ab113abc4ed93678e342d28aa3", |
Klaus Aehlig | acafe5a | 2018-10-24 03:16:42 -0700 | [diff] [blame] | 299 | }, |
| 300 | urls = { |
| 301 | "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"], |
| 302 | "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"], |
| 303 | "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"], |
| 304 | "jdk9-server-release-1708.tar.xz" : ["https://mirror.bazel.build/openjdk.linaro.org/releases/jdk9-server-release-1708.tar.xz"], |
| 305 | "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"], |
| 306 | "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"], |
| 307 | "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" ], |
| 308 | "jdk10-server-release-1804.tar.xz" : ["https://mirror.bazel.build/openjdk.linaro.org/releases/jdk10-server-release-1804.tar.xz"], |
cushon | f34ad0e | 2019-01-23 13:35:06 -0800 | [diff] [blame] | 309 | "java_tools_pkg-0.1.tar.gz": ["https://mirror.bazel.build/bazel_java_tools/java_tools_pkg-0.1.tar.gz"], |
| 310 | "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"], |
| 311 | "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"], |
| 312 | "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"], |
Klaus Aehlig | acafe5a | 2018-10-24 03:16:42 -0700 | [diff] [blame] | 313 | }, |
| 314 | ) |
Jingwen Chen | 186bdcd | 2018-12-14 10:27:23 -0800 | [diff] [blame] | 315 | |
| 316 | load("//scripts/docs:doc_versions.bzl", "DOC_VERSIONS") |
| 317 | |
| 318 | [http_file( |
| 319 | name = "jekyll_tree_%s" % DOC_VERSION["version"].replace(".", "_"), |
| 320 | sha256 = DOC_VERSION["sha256"], |
| 321 | urls = ["https://mirror.bazel.build/bazel_versioned_docs/jekyll-tree-%s.tar" % DOC_VERSION["version"]], |
| 322 | ) for DOC_VERSION in DOC_VERSIONS] |