Comments (7)
well this is not really a problem of jsch...
I started simple gradle setup with --scan
As you can see on https://scans.gradle.com/s/kzlgphskuyd7e/build-dependencies/repositories the build dependencies contain the substituted jar, so I guess it's just a bug in the buildenvironment
task.
Also
task printJschVersion() {
println("jsch version = " + com.jcraft.jsch.JSch.VERSION)
}
gives:
$ gradlew wrapper --gradle-version 8.5
$ gradlew -q printJschVersion
jsch version = 0.2.4
from jsch.
btw you can also substitute the com.jcraft:jsch.agentproxy
and com.jcraft:jzlib
with com.github.mwiede:jsch:0.2.14
because these have been included in the main jar.
from jsch.
Does also substituting in agentproxy
and jzlib
provide any improvements besides possibly just removing any remaining dependency on the com.jcraft
jar? thanks
from jsch.
Hi @am312,
It's possible it could cause issues if the older implementations somehow are utilized instead of our built-in versions.
We would highly encourage you to remove them.
Thanks,
Jeremy
from jsch.
Hi @norrisjeremy.
So you'd suggest something like this?
buildscript {
dependencies {
classpath "pl.allegro.tech.build:axion-release-plugin:1.14.2"
}
configurations.all {
resolutionStrategy.dependencySubstitution {
substitute module("com.jcraft:jsch") using module("com.github.mwiede:jsch:0.2.14") because "jcraft jsch is unmaintained"
substitute module("com.jcraft:jsch.agentproxy") using module("com.github.mwiede:jsch:0.2.14") because "jcraft jsch is unmaintained"
substitute module("com.jcraft:jzlib") using module("com.github.mwiede:jsch:0.2.14") because "jcraft jsch is unmaintained"
}
}
}
Thanks
-Andrew
from jsch.
Hi @am312,
I'm not especially familiar with gradle, so I'm unsure exactly how it would be accomplished.
Perhaps @mwiede is more familiar and can comment?
Thanks,
Jeremy
from jsch.
@am312 yes the substitutions you made look ok to me
from jsch.
Related Issues (20)
- Full List of Config Options For Backwards Compatibility with Original Jsch
- Merge release branch? HOT 1
- Question about ssh-rsa deprecation HOT 5
- Ordering of "ls"-method possible? HOT 2
- [Question] Disconnecting: Received data for nonexistent channel 0.
- error in channel connection HOT 7
- Some bizarre exception when using SSH key to log on HOT 3
- failed to parse public key error with successful connection HOT 3
- After upgrade from version 02.11 to 0.2.16 connections fail with: java.io.IOException: End of IO Stream Read HOT 8
- sftp server failed to read file HOT 4
- Support for rsa2048-sha256 Key exchange HOT 6
- Jenkins com.jcraft.jsch.JSchAlgoNegoFailException: Algorithm negotiation fail HOT 5
- Connecting to Euler server, executing write and execute scripts in one connection, memory error HOT 1
- Does JSCH support JDK17 HOT 4
- Specify certificate file in ssh connection HOT 1
- Exception During Authentication - IOException: End of IO Stream Read HOT 5
- Packet corrupt HOT 2
- "JSchException: key type ssh-rp is not supported" Error on adding identity HOT 3
- Multi-Release jar for Java8 HOT 2
- Android: DexMerge Failed HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsch.