summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.archive
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2016-11-06 09:06:54 +0100
committerDavid Pursehouse <david.pursehouse@gmail.com>2017-01-18 19:13:16 -0400
commite92a0c3adc7035e5188194e145b8cd010887b569 (patch)
treeecce3f7fbb5db1d637bf855bd3f42826f806609b /org.eclipse.jgit.archive
parentb667c182cbaf56fd4382362f042062343bac0856 (diff)
downloadjgit-e92a0c3adc7035e5188194e145b8cd010887b569.tar.gz
jgit-e92a0c3adc7035e5188194e145b8cd010887b569.zip
Implement initial framework of Bazel build
The initial implementation only builds the packages consumed by Gerrit Code Review. Test build and execution is not implemented. We prefer to consume maven_jar custom rule from bazlets repository, for the same reasons as in the Gerrit project: * Caching artifacts across different clones and projects * Exposing source classifiers and neverlink artifact TEST PLAN: $ bazel build :all $ unzip -t bazel-genfiles/all.zip Archive: bazel-genfiles/all.zip testing: libjgit-archive.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: Ia837ce95d9829fe2515f37b7a04a71a4598672a0 Signed-off-by: David Ostrovsky <david@ostrovsky.org> Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.archive')
-rw-r--r--org.eclipse.jgit.archive/BUILD15
1 files changed, 15 insertions, 0 deletions
diff --git a/org.eclipse.jgit.archive/BUILD b/org.eclipse.jgit.archive/BUILD
new file mode 100644
index 0000000000..c74f6d8a20
--- /dev/null
+++ b/org.eclipse.jgit.archive/BUILD
@@ -0,0 +1,15 @@
+package(default_visibility = ['//visibility:public'])
+
+java_library(
+ name = 'jgit-archive',
+ srcs = glob(
+ ['src/**'],
+ exclude = ['src/org/eclipse/jgit/archive/FormatActivator.java'],
+ ),
+ resources = glob(['resources/**']),
+ resource_strip_prefix = 'org.eclipse.jgit.archive/resources',
+ deps = [ # We want these deps to be provided_deps
+ '//org.eclipse.jgit:jgit',
+ '@commons_compress//jar',
+ ],
+)