Browse Source
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 https://gerrit-review.googlesource.com/90843 to a copy of Gerrit, following the instructions there, and running 'bazel test //...' in that copy of Gerrit still succeeds Change-Id: I3ab958ce8b3227019cdbe4cc81e0f042e1541034stable-4.7
Jonathan Nieder
8 years ago
7 changed files with 72 additions and 14 deletions
@ -0,0 +1,60 @@ |
|||||||
|
java_library( |
||||||
|
name = "commons-compress", |
||||||
|
visibility = ["//org.eclipse.jgit.archive:__pkg__"], |
||||||
|
exports = ["@commons_compress//jar"], |
||||||
|
) |
||||||
|
|
||||||
|
java_library( |
||||||
|
name = "gson", |
||||||
|
visibility = ["//org.eclipse.jgit.lfs.server:__pkg__"], |
||||||
|
exports = ["@gson//jar"], |
||||||
|
) |
||||||
|
|
||||||
|
java_library( |
||||||
|
name = "httpclient", |
||||||
|
visibility = ["//org.eclipse.jgit.http.apache:__pkg__"], |
||||||
|
exports = ["@httpclient//jar"], |
||||||
|
) |
||||||
|
|
||||||
|
java_library( |
||||||
|
name = "httpcore", |
||||||
|
visibility = [ |
||||||
|
"//org.eclipse.jgit.http.apache:__pkg__", |
||||||
|
"//org.eclipse.jgit.lfs.server:__pkg__", |
||||||
|
], |
||||||
|
exports = ["@httpcore//jar"], |
||||||
|
) |
||||||
|
|
||||||
|
java_library( |
||||||
|
name = "javaewah", |
||||||
|
visibility = ["//visibility:public"], |
||||||
|
exports = ["@javaewah//jar"], |
||||||
|
) |
||||||
|
|
||||||
|
java_library( |
||||||
|
name = "jsch", |
||||||
|
visibility = ["//org.eclipse.jgit:__pkg__"], |
||||||
|
exports = ["@jsch//jar"], |
||||||
|
) |
||||||
|
|
||||||
|
java_library( |
||||||
|
name = "junit", |
||||||
|
visibility = ["//org.eclipse.jgit.junit:__pkg__"], |
||||||
|
exports = ["@junit//jar"], |
||||||
|
) |
||||||
|
|
||||||
|
java_library( |
||||||
|
name = "servlet-api", |
||||||
|
visibility = [ |
||||||
|
"//org.eclipse.jgit.http.apache:__pkg__", |
||||||
|
"//org.eclipse.jgit.http.server:__pkg__", |
||||||
|
"//org.eclipse.jgit.lfs.server:__pkg__", |
||||||
|
], |
||||||
|
exports = ["@servlet_api_3_1//jar"], |
||||||
|
) |
||||||
|
|
||||||
|
java_library( |
||||||
|
name = "slf4j-api", |
||||||
|
visibility = ["//visibility:public"], |
||||||
|
exports = ["@log_api//jar"], |
||||||
|
) |
Loading…
Reference in new issue