Skip to content

Commit b1740a3

Browse files
committed
Fix JGit SSH module version mismatch and update imports for JGit 6.x compatibility
- Updated jgitSsh from 5.13.3 to 6.6.1 to match core jgit version - Fixed package imports in PluginSshSessionFactory for JGit 6.x - JschConfigSessionFactory moved to org.eclipse.jgit.transport.ssh.jsch - OpenSshConfig moved to org.eclipse.jgit.transport.ssh.jsch - Resolves version mismatch that could cause SSH authentication issues
1 parent 1b6fa02 commit b1740a3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ junit = "4.13.2"
88
rundeckCore = "5.16.0-20251006"
99
slf4j = "1.7.36"
1010
jgit = "6.6.1.202309021850-r"
11-
jgitSsh = "5.13.3.202401111512-r"
11+
jgitSsh = "6.6.1.202309021850-r"
1212
spock = "2.0-groovy-3.0"
1313
cglib = "3.3.0"
1414
objenesis = "1.4"

src/main/groovy/com/rundeck/plugin/util/PluginSshSessionFactory.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import com.jcraft.jsch.JSch
44
import com.jcraft.jsch.JSchException
55
import com.jcraft.jsch.Session
66
import org.eclipse.jgit.api.TransportConfigCallback
7-
import org.eclipse.jgit.transport.JschConfigSessionFactory
8-
import org.eclipse.jgit.transport.OpenSshConfig
7+
import org.eclipse.jgit.transport.ssh.jsch.JschConfigSessionFactory
8+
import org.eclipse.jgit.transport.ssh.jsch.OpenSshConfig
99
import org.eclipse.jgit.transport.SshTransport
1010
import org.eclipse.jgit.transport.Transport
1111
import org.eclipse.jgit.util.FS

0 commit comments

Comments
 (0)