aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bazlets.bzl
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2018-11-01 08:37:29 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2018-11-01 23:49:10 +0100
commit9625db20a577dcd58a9ddc08750ab53d32fbca7e (patch)
tree3f47843e8ccb0acc8c926e8daa9c3645bd2aaef9 /tools/bazlets.bzl
parent00472a6d7cfc6599d4d4e1d6c8881e707b7b3ede (diff)
downloadjgit-9625db20a577dcd58a9ddc08750ab53d32fbca7e.tar.gz
jgit-9625db20a577dcd58a9ddc08750ab53d32fbca7e.zip
Upgrade to Bazel 0.19.0
Also replace native git_repository rule with Starlark rule. This is needed because in recent Bazel versions native git_repository rule is deprecated. Change-Id: I2c19fd31693a930d7d35fdbb93bfa4abf21fa2aa Signed-off-by: David Ostrovsky <david@ostrovsky.org>
Diffstat (limited to 'tools/bazlets.bzl')
-rw-r--r--tools/bazlets.bzl4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/bazlets.bzl b/tools/bazlets.bzl
index f97b72c828..f089af473a 100644
--- a/tools/bazlets.bzl
+++ b/tools/bazlets.bzl
@@ -1,10 +1,12 @@
+load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
+
NAME = "com_googlesource_gerrit_bazlets"
def load_bazlets(
commit,
local_path = None):
if not local_path:
- native.git_repository(
+ git_repository(
name = NAME,
remote = "https://gerrit.googlesource.com/bazlets",
commit = commit,