]> source.dussan.org Git - jgit.git/commitdiff
Add dependency to jsch for OpenSshConfigTest to bazel build 78/104078/1
authorThomas Wolf <thomas.wolf@paranor.ch>
Thu, 31 Aug 2017 12:14:05 +0000 (14:14 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Thu, 31 Aug 2017 12:14:05 +0000 (14:14 +0200)
Make jsch visible to the test bundle and add the dependency.

Change-Id: I0c49ee9b8f64fe8a8c74d2f08865917eb33069b4
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
lib/BUILD
org.eclipse.jgit.test/tests.bzl

index ffe66a3d89e043f08c1ddfb8ff6ac03dfd9a1f33..703e7befc6f00ded3e35e2f7f8c8c5010b60a080 100644 (file)
--- a/lib/BUILD
+++ b/lib/BUILD
@@ -106,7 +106,10 @@ java_library(
 
 java_library(
     name = "jsch",
-    visibility = ["//org.eclipse.jgit:__pkg__"],
+    visibility = [
+        "//org.eclipse.jgit:__pkg__",
+        "//org.eclipse.jgit.test:__pkg__",
+    ],
     exports = ["@jsch//jar"],
 )
 
index 9cadc7463ade9f10362116bf7abf8d65124ccc1a..3c42306db21ea15787dad6beea6290c1d45a0527 100644 (file)
@@ -29,6 +29,10 @@ def tests(tests):
       additional_deps = [
         '//org.eclipse.jgit:insecure_cipher_factory',
       ]
+    if src.endswith("OpenSshConfigTest.java"):
+      additional_deps = [
+        '//lib:jsch',
+      ]
 
     junit_tests(
       name = name,