summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wolf <thomas.wolf@paranor.ch>2017-08-31 14:14:05 +0200
committerThomas Wolf <thomas.wolf@paranor.ch>2017-08-31 14:14:05 +0200
commitc506f8d2dd0f0974339a087251f35e7e8d878df2 (patch)
treea5ab0714f6351860c48624dd8976159e28eb8314
parentf4329b09d48e78dc67911a50a159bd64e78822fc (diff)
downloadjgit-c506f8d2dd0f0974339a087251f35e7e8d878df2.tar.gz
jgit-c506f8d2dd0f0974339a087251f35e7e8d878df2.zip
Add dependency to jsch for OpenSshConfigTest to bazel build
Make jsch visible to the test bundle and add the dependency. Change-Id: I0c49ee9b8f64fe8a8c74d2f08865917eb33069b4 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
-rw-r--r--lib/BUILD5
-rw-r--r--org.eclipse.jgit.test/tests.bzl4
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/BUILD b/lib/BUILD
index ffe66a3d89..703e7befc6 100644
--- 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"],
)
diff --git a/org.eclipse.jgit.test/tests.bzl b/org.eclipse.jgit.test/tests.bzl
index 9cadc7463a..3c42306db2 100644
--- a/org.eclipse.jgit.test/tests.bzl
+++ b/org.eclipse.jgit.test/tests.bzl
@@ -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,