[GRADLE-2104] milestone-8 : jsch-0.1.42.jar missing, Ivy SFTPResolver can not be be used anymore Created: 15/Feb/12  Updated: 04/Jan/13  Resolved: 25/Mar/12

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-milestone-8
Fix Version/s: 1.0-milestone-9

Type: Bug
Reporter: Gradle Forums Assignee: Unassigned
Resolution: Fixed Votes: 1


 Description   

Whem migrating from milestone-7 to milestone-8 :

java.lang.ClassNotFoundException: com.jcraft.jsch.JSchException

Related to

uploadArchives {
repositories {
add(new org.apache.ivy.plugins.resolver.SFTPResolver()) {
...

Indeed, jsch-0.1.42.jar is not provided anymore in the lib directory of Gradle, I've tried to add this lib in milestone-8 lib directory but it does not work either.
I've also tried to insert jsch-0.1.42 in the buildscript classpath, but it does not work (The Ivy lib must be in Gradle classloader I guess)

Any idea ? Thank you.



 Comments   
Comment by Suresh Khatri [ 20/Feb/12 ]

I had this as a workaround

open the gradle-launcher-1.0-milestone-8.jar in gradle\lib

Add the jsch jar name to the file gradle-launcher-classpath.properties and update the jar

projects=gradle-core,gradle-cli,gradle-ui,gradle-tooling-api,gradle-native
runtime=slf4j-api-1.6.4.jar,jsch-0.1.42.jar

Drop jsch-0.1.42.jar into gradle\lib

Generated at Wed Jun 30 12:12:54 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.