From 4d566c621720f47d0b5adb1e03d617c1819d2e87 Mon Sep 17 00:00:00 2001 From: Julien Dramaix Date: Thu, 26 Dec 2019 05:01:35 -0800 Subject: [PATCH] Remove usages of native.maven_jar rule. The rule is deprecated from bazel 0.29 and is removed in bazel 2.0 PiperOrigin-RevId: 287176230 --- .../internal_do_not_use/jsinterop_generator_workspace.bzl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build_defs/internal_do_not_use/jsinterop_generator_workspace.bzl b/build_defs/internal_do_not_use/jsinterop_generator_workspace.bzl index 0409024..b5481a2 100644 --- a/build_defs/internal_do_not_use/jsinterop_generator_workspace.bzl +++ b/build_defs/internal_do_not_use/jsinterop_generator_workspace.bzl @@ -1,6 +1,7 @@ """Macro to use for loading the jsinterop generator repository""" load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_jar") +load("@bazel_tools//tools/build_defs/repo:jvm.bzl", "jvm_maven_import_external") def setup_jsinterop_generator_workspace(): """Load all dependencies needed for jsinterop generator.""" @@ -13,8 +14,9 @@ def setup_jsinterop_generator_workspace(): # third_party libs used by jsinterop-base # TODO(dramaix): add a macro for loading JsInterop-base repo - native.maven_jar( + jvm_maven_import_external( name = "org_gwtproject_gwt_dev", artifact = "com.google.gwt:gwt-dev:2.8.1", + server_urls = ["https://repo1.maven.org/maven2/"], + licenses = ["notice"], ) -