Skip to content
Permalink
Browse files

Add Bazel minimal version check.

Current plan is to keep this in sync with the tested
version and as things get more mature we will have
a target backward compat version for Bazel and update
this accordingly.

PiperOrigin-RevId: 237946992
  • Loading branch information...
gkdn authored and Copybara-Service committed Mar 12, 2019
1 parent df7cd25 commit 2b14499728eb3e13214538aefcfe6ed430d690eb
Showing with 10 additions and 0 deletions.
  1. +3 −0 build_defs/internal_do_not_use/j2cl_workspace.bzl
  2. +7 −0 build_defs/repository.bzl
@@ -2,10 +2,13 @@

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_jar")
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
load("@bazel_skylib//:lib/versions.bzl", "versions")

def setup_j2cl_workspace():
"""Load all dependencies needed for J2CL."""

versions.check("0.23.0") # The version J2CL currently have a CI setup for.

closure_repositories(
omit_com_google_protobuf = True,
omit_com_google_auto_common = True,
@@ -3,6 +3,7 @@
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

_IO_BAZEL_RULES_CLOSURE_VERSION = "master"
_BAZEL_SKYLIB_VERSION = "0.7.0"

def load_j2cl_repo_deps():
http_archive(
@@ -11,3 +12,9 @@ def load_j2cl_repo_deps():
url = "https://github.com/bazelbuild/rules_closure/archive/%s.zip"% _IO_BAZEL_RULES_CLOSURE_VERSION,
)

http_archive(
name = "bazel_skylib",
strip_prefix = "bazel-skylib-%s" % _BAZEL_SKYLIB_VERSION,
url = "https://github.com/bazelbuild/bazel-skylib/archive/%s.zip"% _BAZEL_SKYLIB_VERSION,
)

0 comments on commit 2b14499

Please sign in to comment.
You can’t perform that action at this time.