From f75effda4d36309da75d463eeb7239dad4272013 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Wed, 10 Oct 2018 10:53:35 +0900 Subject: 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 --- WORKSPACE | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'WORKSPACE') diff --git a/WORKSPACE b/WORKSPACE index 02de720214..58f8eff539 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -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") -- cgit v1.2.3 From 15edb0c3a71a972d4168c49c2654b2ef957cd9d1 Mon Sep 17 00:00:00 2001 From: David Ostrovsky Date: Sat, 8 Jun 2019 17:31:33 +0200 Subject: Bazel: Bump skylib library version to 0.8.0 Change-Id: I2089899c9f197b2c93b93390fdd55f6fe11e5ce4 Signed-off-by: David Ostrovsky --- WORKSPACE | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'WORKSPACE') diff --git a/WORKSPACE b/WORKSPACE index 58f8eff539..5c6ec38c37 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -4,9 +4,9 @@ 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"], + sha256 = "2ea8a5ed2b448baf4a6855d3ce049c4c452a6470b1efd1504fdb7c1c134d220a", + strip_prefix = "bazel-skylib-0.8.0", + urls = ["https://github.com/bazelbuild/bazel-skylib/archive/0.8.0.tar.gz"], ) load("@bazel_skylib//:lib.bzl", "versions") -- cgit v1.2.3 From cae8d499bc4376a52e6b5f34a012f0b22081d9eb Mon Sep 17 00:00:00 2001 From: David Ostrovsky Date: Thu, 5 Sep 2019 22:07:46 +0200 Subject: Bazel: Bump minimum supported version to 0.29.0 Change-Id: I069e56deb964624791bb0aa3ae095629adfe3bbb Signed-off-by: David Ostrovsky --- .bazelversion | 2 +- WORKSPACE | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'WORKSPACE') diff --git a/.bazelversion b/.bazelversion index 7cca7711a0..ae6dd4e203 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -0.17.1 +0.29.0 diff --git a/WORKSPACE b/WORKSPACE index 5c6ec38c37..0d5caa8c9c 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -11,7 +11,7 @@ http_archive( load("@bazel_skylib//:lib.bzl", "versions") -versions.check(minimum_bazel_version = "0.17.1") +versions.check(minimum_bazel_version = "0.29.0") load("//tools:bazlets.bzl", "load_bazlets") -- cgit v1.2.3 From e626c55936a6e5a969bb720c26db9e4434c46edc Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Sat, 7 Sep 2019 15:28:32 +0900 Subject: Bazel: Fix warning about deprecated lib.bzl Change-Id: Ifdbaaf9ec020a621070eea351f791a819d554012 Signed-off-by: David Pursehouse --- WORKSPACE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'WORKSPACE') diff --git a/WORKSPACE b/WORKSPACE index 0d5caa8c9c..de7e530812 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -9,7 +9,7 @@ http_archive( urls = ["https://github.com/bazelbuild/bazel-skylib/archive/0.8.0.tar.gz"], ) -load("@bazel_skylib//:lib.bzl", "versions") +load("@bazel_skylib//lib:versions.bzl", "versions") versions.check(minimum_bazel_version = "0.29.0") -- cgit v1.2.3