diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2018-10-10 10:53:35 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2019-09-07 15:35:39 +0900 |
commit | f75effda4d36309da75d463eeb7239dad4272013 (patch) | |
tree | 9ae4784d29f84ce5755aae762ef329119e691d68 /WORKSPACE | |
parent | 185dc846234608b282d7bdab0f8898dd29d4ebd3 (diff) | |
download | jgit-f75effda4d36309da75d463eeb7239dad4272013.tar.gz jgit-f75effda4d36309da75d463eeb7239dad4272013.zip |
Bazel: Require minimum bazel version 0.17.1
Check the bazel version using the checker from bazel_skylib, and
require at least version 0.17.1 which is the minimum version that
does not suffer from the Java API mismatch issue [1].
The implementation is borrowed from the Gerrit project.
[1] https://github.com/bazelbuild/bazel/issues/6027
Change-Id: I224250088a1f5072fcaa3ec81228f4d2cb8cb389
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'WORKSPACE')
-rw-r--r-- | WORKSPACE | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1,5 +1,18 @@ workspace(name = "jgit") +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") + +http_archive( + name = "bazel_skylib", + sha256 = "bbccf674aa441c266df9894182d80de104cabd19be98be002f6d478aaa31574d", + strip_prefix = "bazel-skylib-2169ae1c374aab4a09aa90e65efe1a3aad4e279b", + urls = ["https://github.com/bazelbuild/bazel-skylib/archive/2169ae1c374aab4a09aa90e65efe1a3aad4e279b.tar.gz"], +) + +load("@bazel_skylib//:lib.bzl", "versions") + +versions.check(minimum_bazel_version = "0.17.1") + load("//tools:bazlets.bzl", "load_bazlets") load_bazlets(commit = "09a035e98077dce549d5f6a7472d06c4b8f792d2") |