gerrit/version.bzl
Dmitry Lomov 60e3a55960 Allow building gerrit with experimental/unreleased Bazel.
Change-Id: I448dd8c0f42b70870805c3fd6b9a215a3be0fe06
2017-10-25 12:44:10 +02:00

13 lines
435 B
Python

# Maven style API version (e.g. '2.x-SNAPSHOT').
# Used by :api_install and :api_deploy targets
# when talking to the destination repository.
#
GERRIT_VERSION = "2.16-SNAPSHOT"
def check_version(x):
if native.bazel_version == "":
# experimental / unreleased Bazel.
return
if native.bazel_version < x:
fail("\nERROR: Current Bazel version is {}, expected at least {}\n".format(native.bazel_version, x))