Switch from org.eclipse.swt to org.eclipse.platform
#167
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No need to self host under your
internal-repohttps://apps.egiz.gv.at/maven/org/eclipse/swt/Background:
While getting PDF-Over working on Linux aarch64, the build failed, complaining that the
org.eclipse.swt.gtk.linux.aarch64artifact can not be fetched. Turns out that neither onthe linux aarch64 classifier exists (and Maven central does not even host new releases of swt under that groupid...).
So I was looking around on https://eclipse.dev/eclipse/swt/ and https://github.com/eclipse-platform/eclipse.platform.swt and the maven coordinates where they say they host the swt artifacts is
org.eclipse.platformunder https://repo1.maven.org/maven2/org/eclipse/platform/.And indeed its there, they even publish aarch64 artifacts:
The only thing that made me wonder is the versioning: Currently in PDF-Over you depend on version 4.35 from the
org.eclipse.swtgroupid, but inorg.eclipse.platformall versions are on 3.xTurns out there is this very interesting post:
So reading the replies, my understanding is that the artifacts they publish on maven central under the
org.eclipse.platformshould be just the same like the ones you can download from the website (here at the bottom swt 4.38) or from the archives (like the 4.35 one).So lets check this:
From https://archive.eclipse.org/eclipse/downloads/drops4/R-4.35-202502280140/ download the
swt-4.35-gtk-linux-x86_64.zipfile and unpack it and also unpack theswt.jarfile inside it.Turns out version 4.35 was released in March 2025 (see its git tag), we therefore download version 3.129.0 of the
org.eclipse.platformgroupid, as it was published around the same time: https://repo1.maven.org/maven2/org/eclipse/platform/org.eclipse.swt.gtk.linux.x86_64/3.129.0/ - again unpack the jar.If you now compare the contents of the two unpacked jar files, you will see that they are 99% the same (talking about byte comparison, not just doing
lsortree), just the manifest files differ slightly and some property files got removed - I guess this was some cleanup task.But anyway, this shows that we can just replace 4.35 with 3.129.0.
And even more: If you download the jar from your internal repo (https://apps.egiz.gv.at/maven/org/eclipse/swt/org.eclipse.swt.gtk.linux.x86_64/4.35/) and compare its content with the two other jars, you will again see the content is 99% the same, except the manifest and some cleaned up property files (again, just like before).
Therefore I am very confident we can just switch the groupId to
org.eclipse.platformand the 3.x versioning, which gives us the benefits of