Use http_archive for the example
@@ -4,18 +4,16 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# Load j2cl repository
-local_repository(
+http_archive(
name = "com_google_j2cl",
- path = "../..",
+ strip_prefix = "j2cl-master",
+ url = "https://github.com/google/j2cl/archive/master.zip",
)
-# If you are not developping with J2CL, consider to use an http archive instead of a local
-# repository
-# TODO(dramaix): make that the default once j2cl is publicly released
-# http_archive(
+# If you are developping with J2CL, please use a local repository instead.
+# local_repository(
# name = "com_google_j2cl",
-# strip_prefix = "j2cl-master",
-# url = "https://github.com/google/j2cl/archive/master.zip",
+# path = "../..",
# )
load("@com_google_j2cl//build_defs:repository.bzl", "load_j2cl_repo_deps")
