diff --git a/appengine/java_appengine.bzl b/appengine/java_appengine.bzl index 565bda3..d2da611 100644 --- a/appengine/java_appengine.bzl +++ b/appengine/java_appengine.bzl @@ -69,6 +69,7 @@ APP_ID. If not specified, it uses the default APP_ID provided in the application web.xml. """ +load("@bazel_tools//tools/build_defs/repo:jvm.bzl", "jvm_maven_import_external") load(":variables.bzl", "JAVA_SDK_VERSION", "JAVA_SDK_SHA256") load(":sdk.bzl", "find_locally_or_download") @@ -293,7 +294,10 @@ def java_appengine_repositories(version=JAVA_SDK_VERSION, strip_prefix_pattern = "appengine-java-sdk-{version}", ) - native.maven_jar( + jvm_maven_import_external( name = "javax_servlet_api", artifact = "javax.servlet:servlet-api:2.5", + artifact_sha256 = "c658ea360a70faeeadb66fb3c90a702e4142a0ab7768f9ae9828678e0d9ad4dc", + server_urls = ["http://central.maven.org/maven2"], + licenses = ["reciprocal"] # CDDL License )