stefanbirkner / fake-sftp-server-rule

A JUnit rule that runs an in-memory SFTP server.
MIT License
40 stars 26 forks source link

incompatibility with sshd-core 2.0.0 #10

Closed cvaliente closed 6 years ago

cvaliente commented 6 years ago

gradle now pulls in sshd-core 2.0.0 as depndency which is not compatible.

./gradlew dependencyInsight --configuration testCompile --dependency sshd

org.apache.sshd:sshd-core:[1,) -> 2.0.0 variant "runtime" --- com.github.stefanbirkner:fake-sftp-server-rule:2.0.0 --- testCompile

with SSHD-815, the sftp component has been moved into its own module and org.apache.sshd.server.subsystem.sftp.SftpSubsystemFactory no longer exists in sshd-core. this project needs to start declaring sshd-sftp as dependency or restrict the version of sshd-core to below 2.0.0

stefanbirkner commented 6 years ago

I need some time to fix this problem. For the time being you can fix the problem by setting the version of sshd-core explicitly to a 1.x.x version:

<dependency>
    <groupId>org.apache.sshd</groupId>
    <artifactId>sshd-core</artifactId>
    <version>[1.7.0]</version>
    <scope>test</scope>
</dependency>
konurbaev-e commented 6 years ago

For Gradle this workaround works:

testCompile("org.apache.sshd:sshd-core:1.7.0") { force = true }

stefanbirkner commented 6 years ago

Fixed by 2f6b2ea65a77b2cb1b0aa34f7d05457d986ed294 and available in Fake SFTP Server Rule 2.0.1.