From e92a0c3adc7035e5188194e145b8cd010887b569 Mon Sep 17 00:00:00 2001 From: David Ostrovsky Date: Sun, 6 Nov 2016 09:06:54 +0100 Subject: 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 Signed-off-by: David Pursehouse --- org.eclipse.jgit/BUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 org.eclipse.jgit/BUILD (limited to 'org.eclipse.jgit/BUILD') diff --git a/org.eclipse.jgit/BUILD b/org.eclipse.jgit/BUILD new file mode 100644 index 0000000000..2abf228082 --- /dev/null +++ b/org.eclipse.jgit/BUILD @@ -0,0 +1,29 @@ +package(default_visibility = ['//visibility:public']) + +INSECURE_CIPHER_FACTORY = [ + 'src/org/eclipse/jgit/transport/InsecureCipherFactory.java', +] + +SRCS = glob(['src/**'], exclude=INSECURE_CIPHER_FACTORY) +RESOURCES = glob(['resources/**']) + +java_library( + name = 'jgit', + srcs = SRCS, + resources = RESOURCES, + resource_strip_prefix = 'org.eclipse.jgit/resources', + deps = [ + ':insecure_cipher_factory', + '@javaewah//jar', + '@jsch//jar', + '@httpclient//jar', + '@servlet_api_3_1//jar', + '@log_api//jar', + ], +) + +java_library( + name = 'insecure_cipher_factory', + srcs = INSECURE_CIPHER_FACTORY, + javacopts = ['-Xep:InsecureCipherMode:OFF'], +) -- cgit v1.2.3