summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2017-03-18 16:13:26 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2017-03-21 09:24:12 +0100
commit0f6ddb372bc24a010c85849dfc80f72fc8cd604d (patch)
tree9b25cdc0b3e54803902559b7c3eeb82627fb0513 /lib
parentcee9d444e97858d441b5de0f4c357bccbe4952f2 (diff)
downloadjgit-0f6ddb372bc24a010c85849dfc80f72fc8cd604d.tar.gz
jgit-0f6ddb372bc24a010c85849dfc80f72fc8cd604d.zip
Add remaining parts of the bazel build
Add bazel build for ui and junit.http, and the test packages. A number of different test labels are supported: api attributes dfs diff http lfs lfs-server nls notes pack patch pgm reftree revplot revwalk storage submodule symlinks transport treewalk util To run all tests: bazel test //... To run specific tests, using labels: bazel test --test_tag_filters=api,dfs,revplot,treewalk //... Change-Id: Ic41b05a79d855212e67b1b4707e9c6b4dc9ea70d Signed-off-by: David Ostrovsky <david@ostrovsky.org> Signed-off-by: Jonathan Nieder <jrn@google.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/BUILD111
1 files changed, 109 insertions, 2 deletions
diff --git a/lib/BUILD b/lib/BUILD
index 40dfcf686f..10a916bddb 100644
--- a/lib/BUILD
+++ b/lib/BUILD
@@ -1,18 +1,58 @@
java_library(
+ name = "args4j",
+ visibility = [
+ "//org.eclipse.jgit.pgm:__pkg__",
+ "//org.eclipse.jgit.pgm.test:__pkg__",
+ ],
+ exports = ["@args4j//jar"],
+)
+
+java_library(
name = "commons-compress",
- visibility = ["//org.eclipse.jgit.archive:__pkg__"],
+ visibility = [
+ "//org.eclipse.jgit.archive:__pkg__",
+ "//org.eclipse.jgit.pgm.test:__pkg__",
+ ],
exports = ["@commons_compress//jar"],
)
java_library(
+ name = "commons-codec",
+ exports = ["@commons_codec//jar"],
+)
+
+java_library(
+ name = "commons-logging",
+ testonly = 1,
+ visibility = ["//visibility:public"],
+ exports = ["@commons_logging//jar"],
+)
+
+java_library(
name = "gson",
visibility = ["//org.eclipse.jgit.lfs.server:__pkg__"],
exports = ["@gson//jar"],
)
java_library(
+ name = "hamcrest-core",
+ testonly = 1,
+ exports = ["@hamcrest_core//jar"],
+)
+
+java_library(
+ name = "hamcrest-library",
+ testonly = 1,
+ exports = ["@hamcrest_library//jar"],
+)
+
+java_library(
name = "httpclient",
- visibility = ["//org.eclipse.jgit.http.apache:__pkg__"],
+ visibility = [
+ "//org.eclipse.jgit.http.apache:__pkg__",
+ "//org.eclipse.jgit.lfs.server.test:__pkg__",
+ "//org.eclipse.jgit.pgm:__pkg__",
+ ],
exports = ["@httpclient//jar"],
)
@@ -21,6 +61,8 @@ java_library(
visibility = [
"//org.eclipse.jgit.http.apache:__pkg__",
"//org.eclipse.jgit.lfs.server:__pkg__",
+ "//org.eclipse.jgit.lfs.server.test:__pkg__",
+ "//org.eclipse.jgit.pgm:__pkg__",
],
exports = ["@httpcore//jar"],
)
@@ -32,6 +74,49 @@ java_library(
)
java_library(
+ name = "jetty-http",
+ # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
+ visibility = ["//visibility:public"],
+ exports = ["@jetty_http//jar"],
+ runtime_deps = [":commons-codec"],
+)
+
+java_library(
+ name = "jetty-io",
+ # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
+ visibility = ["//visibility:public"],
+ exports = ["@jetty_io//jar"],
+)
+
+java_library(
+ name = "jetty-security",
+ # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
+ visibility = ["//visibility:public"],
+ exports = ["@jetty_security//jar"],
+)
+
+java_library(
+ name = "jetty-server",
+ # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
+ visibility = ["//visibility:public"],
+ exports = ["@jetty_server//jar"],
+)
+
+java_library(
+ name = "jetty-servlet",
+ # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
+ visibility = ["//visibility:public"],
+ exports = ["@jetty_servlet//jar"],
+)
+
+java_library(
+ name = "jetty-util",
+ # TODO: This should be testonly but org.eclipse.jgit.pgm depends on it.
+ visibility = ["//visibility:public"],
+ exports = ["@jetty_util//jar"],
+)
+
+java_library(
name = "jsch",
visibility = ["//org.eclipse.jgit:__pkg__"],
exports = ["@jsch//jar"],
@@ -42,6 +127,10 @@ java_library(
testonly = 1,
visibility = ["//visibility:public"],
exports = ["@junit//jar"],
+ runtime_deps = [
+ ":hamcrest-core",
+ ":hamcrest-library",
+ ],
)
java_library(
@@ -49,7 +138,11 @@ java_library(
visibility = [
"//org.eclipse.jgit.http.apache:__pkg__",
"//org.eclipse.jgit.http.server:__pkg__",
+ "//org.eclipse.jgit.http.test:__pkg__",
+ "//org.eclipse.jgit.junit.http:__pkg__",
"//org.eclipse.jgit.lfs.server:__pkg__",
+ "//org.eclipse.jgit.lfs.server.test:__pkg__",
+ "//org.eclipse.jgit.pgm:__pkg__",
],
exports = ["@servlet_api_3_1//jar"],
)
@@ -59,3 +152,17 @@ java_library(
visibility = ["//visibility:public"],
exports = ["@log_api//jar"],
)
+
+java_library(
+ name = "slf4j-simple",
+ testonly = 1,
+ visibility = ["//visibility:public"],
+ exports = ["@slf4j_simple//jar"],
+)
+
+java_library(
+ name = "xz",
+ testonly = 1,
+ visibility = ["//visibility:public"],
+ exports = ["@tukaani_xz//jar"],
+)