Browse Source

Implement Bazel build for http-apache, lfs, lfs-server

Test plan:

  $ bazel build all

  $ unzip -t bazel-genfiles/all.zip
    Archive:  bazel-genfiles/all.zip
      testing: libhttp-apache.jar       OK
      testing: libjgit-archive.jar      OK
      testing: libjgit-lfs-server.jar   OK
      testing: libjgit-lfs.jar          OK
      testing: libjgit-servlet.jar      OK
      testing: libjgit.jar              OK
      testing: libjunit.jar             OK
    No errors detected in compressed data of bazel-genfiles/all.zip.

Change-Id: I9e6c60898ccc6d2a4557ec7544c297442a9702b4
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
stable-4.7
David Pursehouse 8 years ago committed by Matthias Sohn
parent
commit
9d1474431f
  1. 3
      BUILD
  2. 13
      org.eclipse.jgit.http.apache/BUILD
  3. 17
      org.eclipse.jgit.lfs.server/BUILD
  4. 11
      org.eclipse.jgit.lfs/BUILD

3
BUILD

@ -5,7 +5,10 @@ genrule(
srcs = [ srcs = [
"//org.eclipse.jgit:jgit", "//org.eclipse.jgit:jgit",
"//org.eclipse.jgit.archive:jgit-archive", "//org.eclipse.jgit.archive:jgit-archive",
"//org.eclipse.jgit.http.apache:http-apache",
"//org.eclipse.jgit.http.server:jgit-servlet", "//org.eclipse.jgit.http.server:jgit-servlet",
"//org.eclipse.jgit.lfs:jgit-lfs",
"//org.eclipse.jgit.lfs.server:jgit-lfs-server",
"//org.eclipse.jgit.junit:junit", "//org.eclipse.jgit.junit:junit",
], ],
outs = ["all.zip"], outs = ["all.zip"],

13
org.eclipse.jgit.http.apache/BUILD

@ -0,0 +1,13 @@
package(default_visibility = ["//visibility:public"])
java_library(
name = "http-apache",
srcs = glob(["src/**"]),
resource_strip_prefix = "org.eclipse.jgit.http.apache/resources",
resources = glob(["resources/**"]),
deps = [
"//org.eclipse.jgit:jgit",
"@httpclient//jar",
"@httpcore//jar",
],
)

17
org.eclipse.jgit.lfs.server/BUILD

@ -0,0 +1,17 @@
package(default_visibility = ["//visibility:public"])
java_library(
name = "jgit-lfs-server",
srcs = glob(["src/**"]),
resource_strip_prefix = "org.eclipse.jgit.lfs.server/resources",
resources = glob(["resources/**"]),
deps = [
"//org.eclipse.jgit.http.apache:http-apache",
"//org.eclipse.jgit:jgit",
"//org.eclipse.jgit.lfs:jgit-lfs",
"@gson//jar",
"@httpcore//jar",
"@log_api//jar",
"@servlet_api_3_1//jar",
],
)

11
org.eclipse.jgit.lfs/BUILD

@ -0,0 +1,11 @@
package(default_visibility = ["//visibility:public"])
java_library(
name = "jgit-lfs",
srcs = glob(["src/**"]),
resource_strip_prefix = "org.eclipse.jgit.lfs/resources",
resources = glob(["resources/**"]),
deps = [
"//org.eclipse.jgit:jgit",
],
)
Loading…
Cancel
Save