aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit/BUILD
diff options
context:
space:
mode:
authorJonathan Nieder <jrn@google.com>2017-03-19 18:52:55 -0700
committerJonathan Nieder <jrn@google.com>2017-03-19 18:56:27 -0700
commit02fe1e0b5b237b090e91c4a5d1ab1ac7b938d0f6 (patch)
treefd0e27b0e46b6d1395a95e678a42bb83f03f4224 /org.eclipse.jgit.junit/BUILD
parentbc5014faec917b08e665e6292b6279fc90ddc50d (diff)
downloadjgit-02fe1e0b5b237b090e91c4a5d1ab1ac7b938d0f6.tar.gz
jgit-02fe1e0b5b237b090e91c4a5d1ab1ac7b938d0f6.zip
bazel: Mark junit targets testonly
Only testonly targets (such as tests) need to use junit. In particular this involves making the toplevel :all rule testonly. It's not clear to me what that rule is for --- "bazel build //..." already works to build all targets. In any case it appears to be for testing, so marking it as testonly shouldn't be harmful. Change-Id: I28ff508ab8ce2ec0a0111109110aa9680d30600e
Diffstat (limited to 'org.eclipse.jgit.junit/BUILD')
-rw-r--r--org.eclipse.jgit.junit/BUILD1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit.junit/BUILD b/org.eclipse.jgit.junit/BUILD
index 15a39c7cd7..350b25f97d 100644
--- a/org.eclipse.jgit.junit/BUILD
+++ b/org.eclipse.jgit.junit/BUILD
@@ -2,6 +2,7 @@ package(default_visibility = ["//visibility:public"])
java_library(
name = "junit",
+ testonly = 1,
srcs = glob(["src/**"]),
resource_strip_prefix = "org.eclipse.jgit.junit/resources",
resources = glob(["resources/**"]),