Permalink
Browse files

Add a starlark function for loading third_party bazel repo needed for…

… j2cl.

PiperOrigin-RevId: 221209174
  • Loading branch information...
jDramaix authored and Copybara-Service committed Nov 13, 2018
1 parent 4f7a531 commit 60975d5ee0aded34ad4e0518c072555671d693bb
@@ -1,11 +1,7 @@
workspace(name = "com_google_j2cl")

http_archive(
name = "io_bazel_rules_closure",
strip_prefix = "rules_closure-master",
url = "https://github.com/bazelbuild/rules_closure/archive/master.zip",
)
load("//build_defs:repository.bzl", "load_j2cl_repo_deps")
load_j2cl_repo_deps()

load("//build_defs:rules.bzl", "setup_j2cl_workspace")

setup_j2cl_workspace()
@@ -0,0 +1,13 @@
"""Bazel rule for loading external repository deps for J2CL."""

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

_IO_BAZEL_RULES_CLOSURE_VERSION = "master"

def load_j2cl_repo_deps():
http_archive(
name = "io_bazel_rules_closure",
strip_prefix = "rules_closure-%s" % _IO_BAZEL_RULES_CLOSURE_VERSION,
url = "https://github.com/bazelbuild/rules_closure/archive/%s.zip"% _IO_BAZEL_RULES_CLOSURE_VERSION,
)

@@ -3,7 +3,7 @@
See corresponding bzl files for the documentation.
"""

load("//build_defs/internal_do_not_use:repository.bzl", _setup_j2cl_workspace = "setup_j2cl_workspace")
load("//build_defs/internal_do_not_use:j2cl_workspace.bzl", _setup_j2cl_workspace = "setup_j2cl_workspace")
load("//build_defs/internal_do_not_use:j2cl_application.bzl", _j2cl_application = "j2cl_application")
load("//build_defs/internal_do_not_use:j2cl_library.bzl", _j2cl_library = "j2cl_library")
load("//build_defs/internal_do_not_use:j2cl_import.bzl", _j2cl_import = "j2cl_import")

0 comments on commit 60975d5

Please sign in to comment.