Giter VIP home page Giter VIP logo

Comments (7)

mwiede avatar mwiede commented on September 18, 2024

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.

mwiede avatar mwiede commented on September 18, 2024

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.

am312 avatar am312 commented on September 18, 2024

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.

norrisjeremy avatar norrisjeremy commented on September 18, 2024

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.

am312 avatar am312 commented on September 18, 2024

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.

norrisjeremy avatar norrisjeremy commented on September 18, 2024

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.

mwiede avatar mwiede commented on September 18, 2024

@am312 yes the substitutions you made look ok to me

from jsch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.