Merge branch 'stable-2.14' into stable-2.15
* stable-2.14:
bazlets: Replace native.git_repository with skylark rule
Upgrade mockito to 2.23.0
Upgrade bazlets to latest stable-2.14 to build with 2.14.15 API
Change-Id: If174b4855aada06ef5ec68a263cb5461117dfd16
diff --git a/bazlets.bzl b/bazlets.bzl
index f97b72c..f089af4 100644
--- a/bazlets.bzl
+++ b/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,
diff --git a/external_plugin_deps.bzl b/external_plugin_deps.bzl
index e01b976..6bb1ec6 100644
--- a/external_plugin_deps.bzl
+++ b/external_plugin_deps.bzl
@@ -3,18 +3,27 @@
def external_plugin_deps():
maven_jar(
name = "mockito",
- artifact = "org.mockito:mockito-core:2.16.0",
- sha1 = "a022ee494c753789a1e7cae75099de81d8a5cea6",
+ artifact = "org.mockito:mockito-core:2.23.0",
+ sha1 = "497ddb32fd5d01f9dbe99a2ec790aeb931dff1b1",
deps = [
"@byte-buddy//jar",
+ "@byte-buddy-agent//jar",
"@objenesis//jar",
],
)
+ BYTE_BUDDY_VERSION = "1.9.0"
+
maven_jar(
name = "byte-buddy",
- artifact = "net.bytebuddy:byte-buddy:1.7.9",
- sha1 = "51218a01a882c04d0aba8c028179cce488bbcb58",
+ artifact = "net.bytebuddy:byte-buddy:" + BYTE_BUDDY_VERSION,
+ sha1 = "8cb0d5baae526c9df46ae17693bbba302640538b",
+ )
+
+ maven_jar(
+ name = "byte-buddy-agent",
+ artifact = "net.bytebuddy:byte-buddy-agent:" + BYTE_BUDDY_VERSION,
+ sha1 = "37b5703b4a6290be3fffc63ae9c6bcaaee0ff856",
)
maven_jar(