summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--BUILD1
-rw-r--r--lib/BUILD3
-rw-r--r--org.eclipse.jgit.junit/BUILD1
3 files changed, 4 insertions, 1 deletions
diff --git a/BUILD b/BUILD
index f94a952283..683ef9e25f 100644
--- a/BUILD
+++ b/BUILD
@@ -2,6 +2,7 @@ package(default_visibility = ["//visibility:public"])
genrule(
name = "all",
+ testonly = 1,
srcs = [
"//org.eclipse.jgit:jgit",
"//org.eclipse.jgit.archive:jgit-archive",
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"],
)
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/**"]),