diff options
author | Jonathan Nieder <jrn@google.com> | 2017-03-19 18:52:55 -0700 |
---|---|---|
committer | Jonathan Nieder <jrn@google.com> | 2017-03-19 18:56:27 -0700 |
commit | 02fe1e0b5b237b090e91c4a5d1ab1ac7b938d0f6 (patch) | |
tree | fd0e27b0e46b6d1395a95e678a42bb83f03f4224 /lib | |
parent | bc5014faec917b08e665e6292b6279fc90ddc50d (diff) | |
download | jgit-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 'lib')
-rw-r--r-- | lib/BUILD | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -39,7 +39,8 @@ java_library( java_library( name = "junit", - visibility = ["//org.eclipse.jgit.junit:__pkg__"], + testonly = 1, + visibility = ["//visibility:public"], exports = ["@junit//jar"], ) |