Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJonathan Nieder2017-03-20 01:52:55 +0000
committerJonathan Nieder2017-03-20 01:56:27 +0000
commit02fe1e0b5b237b090e91c4a5d1ab1ac7b938d0f6 (patch)
treefd0e27b0e46b6d1395a95e678a42bb83f03f4224 /lib
parentbc5014faec917b08e665e6292b6279fc90ddc50d (diff)
downloadjgit-02fe1e0b5b237b090e91c4a5d1ab1ac7b938d0f6.tar.gz
jgit-02fe1e0b5b237b090e91c4a5d1ab1ac7b938d0f6.tar.xz
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 'lib')
-rw-r--r--lib/BUILD3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/BUILD b/lib/BUILD
index 2a1d9104a6..40dfcf686f 100644
--- a/lib/BUILD
+++ b/lib/BUILD
@@ -39,7 +39,8 @@ java_library(
java_library(
name = "junit",
- visibility = ["//org.eclipse.jgit.junit:__pkg__"],
+ testonly = 1,
+ visibility = ["//visibility:public"],
exports = ["@junit//jar"],
)

Back to the top