Skip to content

Commit 753ea9a

Browse files
committed
build(downloader): Exclude Apache MINA's sshd-sftp dependency
JGit's SSH transport depends on MINA's sshd-sftp although that dependency is optional [1] and not required for pure SSH connections. So remove that dependency, which also solves a class initialization issue when building GraalVM native images. [1]: https://github.com/apache/mina-sshd/blob/master/docs/sftp.md Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 8a3144e commit 753ea9a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

downloader/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ dependencies {
2828
implementation(project(":utils:ort-utils"))
2929

3030
implementation(libs.jgit)
31-
implementation(libs.jgitSshApacheAgent)
31+
implementation(libs.jgitSshApacheAgent) {
32+
exclude(group = "org.apache.sshd", module = "sshd-sftp")
33+
.because("it is not required for cloning via SSH and causes issues with GraalVM native images")
34+
}
3235
implementation(libs.svnkit) {
3336
exclude(group = "org.apache.sshd", module = "sshd-core")
3437
.because("it is included in JGit's sshd-osgi dependency")

0 commit comments

Comments
 (0)