Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SLE-990,SLE-989: Prepare patch, only rely on JGit from SonarLint CORE #761

Merged
merged 3 commits into from
Nov 7, 2024

Conversation

thahnen
Copy link
Member

@thahnen thahnen commented Nov 7, 2024

SLE-990
SLE-989

Summary

Since Eclipse IDE 4.33 (2024-09) the EGit and JGit versions coming bundled with the IDE require Java 17 to run. As SonarLint for Eclipse still runs on Java 11 this won't work and fail on all operations that are accessing the branch check or whether a file is ignored or not.

Therefore, the JGit version from SonarLint CORE is used by shading/relocating it into the OSGi bundle and consuming it, additionally removing the dependency on the IDE to come with EGit or JGit.

The JGit implementation was implemented following more or less what was done on SLCORE but excluding all the stuff that is not required in the context of the IDE. The stuff from SLCORE could therefore not be re-used and also was in the backend modules hidden.

Don't rely on EGit or JGit coming with Eclipse anymore but the bundled JGit version from SonarLint CORE.
This is due to Eclipse IDE 4.33 (2024-09) coming with EGit and JGit that requires Java 17
Remove all the leftover dependency and incorrect mentions of EGit.
Also streamline the VcsService and JGitFacade after removing the EGit dependency and related code.
@thahnen thahnen force-pushed the fix/tha/PreparePatch branch from d88f727 to 73857e1 Compare November 7, 2024 10:33
@thahnen thahnen requested a review from nquinquenel November 7, 2024 12:01
@thahnen thahnen marked this pull request as ready for review November 7, 2024 12:01
Copy link
Member

@nquinquenel nquinquenel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thahnen thahnen merged commit e676e64 into master Nov 7, 2024
17 checks passed
@thahnen thahnen deleted the fix/tha/PreparePatch branch November 7, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants