Skip to main content
diff options
authorJonathan Nieder2017-03-20 00:41:26 +0000
committerJonathan Nieder2017-03-20 01:51:03 +0000
commitbc5014faec917b08e665e6292b6279fc90ddc50d (patch)
tree5f211949c39543f505855bbc571dbeba08949271 /org.eclipse.jgit.http.server/BUILD
parent5e5fbb6035b4bcee6717d8a7417e8f8905d1b563 (diff)
bazel: Add explicit targets for library dependencies
This provides a place to declare visibility restrictions and transitive dependencies for each library. Other targets should only declare dependencies on what they directly use, making dependencies easier to maintain. Trim the dependencies of org.eclipse.jgit:jgit to follow that rule. It declares dependencies on Apache httpcomponents and the servlet API but doesn't use them. Tested: * 'bazel build //...' succeeds * applying the change to a copy of Gerrit, following the instructions there, and running 'bazel test //...' in that copy of Gerrit still succeeds Change-Id: I3ab958ce8b3227019cdbe4cc81e0f042e1541034
Diffstat (limited to 'org.eclipse.jgit.http.server/BUILD')
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.http.server/BUILD b/org.eclipse.jgit.http.server/BUILD
index 19992086bd..876c5fa85f 100644
--- a/org.eclipse.jgit.http.server/BUILD
+++ b/org.eclipse.jgit.http.server/BUILD
@@ -6,8 +6,8 @@ java_library(
resource_strip_prefix = "org.eclipse.jgit.http.server/resources",
resources = glob(["resources/**"]),
deps = [
+ "//lib:servlet-api",
# We want these deps to be provided_deps
- "@servlet_api_3_1//jar",

Back to the top