Bazel: Fix testonly values in BUILD and .bzl files

According to the documentation [1], the expected values for testonly
are True and False. Replace all the current usages of "1" with "True".

[1] https://docs.bazel.build/versions/master/be/common-definitions.html

Change-Id: I89417f6f9d56e126a6b05edeaaa946934799ab23
This commit is contained in:
David Pursehouse
2018-12-20 16:50:14 +09:00
parent 64a76378e3
commit f86cc5eb4f
33 changed files with 39 additions and 39 deletions

View File

@@ -37,13 +37,13 @@ DEPS = [
java_library(
name = "classpath",
testonly = 1,
testonly = True,
runtime_deps = LIBS + PGMLIBS + DEPS,
)
classpath_collector(
name = "main_classpath_collect",
testonly = 1,
testonly = True,
deps = LIBS + PGMLIBS + DEPS + TEST_DEPS +
["//plugins/%s:%s__plugin" % (n, n) for n in CORE_PLUGINS + CUSTOM_PLUGINS] +
["//plugins/%s:%s__plugin_test_deps" % (n, n) for n in CUSTOM_PLUGINS_TEST_DEPS],

View File

@@ -50,7 +50,7 @@ def maven_package(
srcs = api_targets,
outs = ["api_install.sh"],
executable = True,
testonly = 1,
testonly = True,
)
if repository and url:
@@ -70,7 +70,7 @@ def maven_package(
srcs = api_targets,
outs = ["api_deploy.sh"],
executable = True,
testonly = 1,
testonly = True,
)
war_cmd = mvn_cmd[:]