]> source.dussan.org Git - jgit.git/commitdiff
Upgrade to Bazel 0.19.0 87/131787/3
authorDavid Ostrovsky <david@ostrovsky.org>
Thu, 1 Nov 2018 07:37:29 +0000 (08:37 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 1 Nov 2018 22:49:10 +0000 (23:49 +0100)
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>
WORKSPACE
tools/BUILD
tools/bazlets.bzl

index 209550fa59736646edb33540e9de17c932884397..d327e13afdc74efff462cc9f535c6a2d13c2c62c 100644 (file)
--- 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.19.0")
 
 load("//tools:bazlets.bzl", "load_bazlets")
 
index b8a621f845accbce95e8f3ffcf878dac31a95b4f..67a0a88d7dfeef75c60197ab118907b716cad281 100644 (file)
@@ -6,7 +6,7 @@ load(
 
 default_java_toolchain(
     name = "error_prone_warnings_toolchain",
-    bootclasspath = ["@bazel_tools//tools/jdk:platformclasspath9.jar"],
+    bootclasspath = ["@bazel_tools//tools/jdk:platformclasspath.jar"],
     jvm_opts = JDK9_JVM_OPTS,
     package_configuration = [
         ":error_prone",
index f97b72c828ce53efcb8245c579df410fed375c4e..f089af473a610e21307bf649a4fec81086cf33a5 100644 (file)
@@ -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,