Bug 564544 - [JSch] Split package issue
Summary: [JSch] Split package issue
Status: RESOLVED FIXED
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 5.7   Edit
Hardware: All All
: P3 critical with 1 vote (vote)
Target Milestone: 6.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-22 10:36 EDT by Semyon Levin CLA
Modified: 2021-09-29 15:25 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Semyon Levin CLA 2020-06-22 10:36:16 EDT
Hello,

From JGit 5.8 JschConfigSessionFactory class was moved to org.eclipse.jgit:org.eclipse.jgit.ssh.jsch artifact Maven. So currently two artifacts share org.eclipse.jgit.transport package:
- org.eclipse.jgit:org.eclipse.jgit
- org.eclipse.jgit:org.eclipse.jgit.ssh.jsch

This leads to JPMS split-package issue. Take a look https://blog.codefx.org/java/java-9-migration-guide/#Split-Packages

Could you please rename packages in org.eclipse.jgit:org.eclipse.jgit.ssh.jsch to avoid JPMS split-package issue?
Comment 1 Loïc Hermann CLA 2021-01-21 11:19:44 EST
Hi,

I created a PR regarding this issue: 

https://github.com/eclipse/jgit/pull/110

Regards
Comment 2 Matthias Sohn CLA 2021-01-21 12:22:25 EST
We don't use Github for code reviews but Gerrit Code Review at [1]. See the contributor guide for details [2]. 

We did that [3] in order to avoid to breaking compatibility in a minor release by moving public classes to another package.
JGit uses OSGi when run in Eclipse and org.eclipse.jgit.ssh.jsch is an OSGi fragment [4] adding classes to its host bundle org.eclipse.jgit when the fragment is available at runtime.

We plan to remove support for jsch in the next major release 6.0 [5] due to the reasons discussed in bug 520927.

[1] https://git.eclipse.org/r
[2] https://wiki.eclipse.org/EGit/Contributor_Guide#Contributing_Patches
[3] https://git.eclipse.org/r/c/jgit/jgit/+/156153
[4] https://git.eclipse.org/r/plugins/gitiles/jgit/jgit/+/refs/heads/master/org.eclipse.jgit.ssh.jsch/META-INF/MANIFEST.MF
[5] https://wiki.eclipse.org/JGit/Planning#Clean-ups
Comment 3 Loïc Hermann CLA 2021-01-23 07:16:59 EST
thank you for your detailed response.
Comment 4 Eclipse Genie CLA 2021-09-12 19:10:50 EDT
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/185345
Comment 6 Matthias Sohn CLA 2021-09-29 15:25:03 EDT
split package issue was fixed on master for 6.0