]> source.dussan.org Git - jgit.git/commitdiff
Implement Bazel build for http-apache, lfs, lfs-server 64/89164/2
authorDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 20 Jan 2017 03:58:46 +0000 (12:58 +0900)
committerMatthias Sohn <matthias.sohn@sap.com>
Sun, 22 Jan 2017 21:34:12 +0000 (22:34 +0100)
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>
BUILD
org.eclipse.jgit.http.apache/BUILD [new file with mode: 0644]
org.eclipse.jgit.lfs.server/BUILD [new file with mode: 0644]
org.eclipse.jgit.lfs/BUILD [new file with mode: 0644]

diff --git a/BUILD b/BUILD
index 3d9389afc43ea57c49f50b911b633787330e1f98..f94a9522839189c01b23a0f51ccdf260678f1273 100644 (file)
--- a/BUILD
+++ b/BUILD
@@ -5,7 +5,10 @@ genrule(
     srcs = [
         "//org.eclipse.jgit:jgit",
         "//org.eclipse.jgit.archive:jgit-archive",
+        "//org.eclipse.jgit.http.apache:http-apache",
         "//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",
     ],
     outs = ["all.zip"],
diff --git a/org.eclipse.jgit.http.apache/BUILD b/org.eclipse.jgit.http.apache/BUILD
new file mode 100644 (file)
index 0000000..0814537
--- /dev/null
@@ -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",
+    ],
+)
diff --git a/org.eclipse.jgit.lfs.server/BUILD b/org.eclipse.jgit.lfs.server/BUILD
new file mode 100644 (file)
index 0000000..5f1e12a
--- /dev/null
@@ -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",
+    ],
+)
diff --git a/org.eclipse.jgit.lfs/BUILD b/org.eclipse.jgit.lfs/BUILD
new file mode 100644 (file)
index 0000000..c4c9f8a
--- /dev/null
@@ -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",
+    ],
+)