Rename modules #343

Merged
jwharm merged 1 commit from rename-modules into main 2026-03-28 17:07:16 +01:00
Owner

This PR renames the (JPMS) modules to use the org.javagi prefix instead of org.gnome, org.freedesktop etc. This change should not break too much existing code, because many apps don't have a module-info.java. For those that do, it's a very small change. The package names are not changed, only the module names.

The reason for renaming the modules is to improve consistency with the names of the artifacts on Maven Central, where we use the org.java-gi group. It is a bit illogical that the org.java-gi:gtk artifact on Maven Central is named org.gnome.gtk in module-info.java.

old name new name
org.freedesktop.gstreamer org.javagi.gstreamer
org.gnome.adw org.javagi.adw
org.gnome.gdkpixbuf org.javagi.gdkpixbuf
org.gnome.glib org.javagi.glib
org.gnome.gtk org.javagi.gtk
org.gnome.gtksourceview org.javagi.gtksourceview
org.gnome.harfbuzz org.javagi.harfbuzz
org.gnome.pango org.javagi.pango
org.gnome.rsvg org.javagi.rsvg
org.gnome.secret org.javagi.secret
org.gnome.soup org.javagi.soup
org.webkitgtk org.javagi.webkitgtk

This PR also bumps the version of the cairo-java-bindings dependency from 1.18.4.2 to 1.18.4.3. This is necessary because it's a "circular dependency": The cairo bindings use org.java-gi:glib, while org.java-gi:gtk depends on the cairo bindings. So we have to update the module-info.java in the cairo bindings together with the changes in Java-GI, or else the gtk module use an older cairo bindings version that refers to the old glib module name.

This PR renames the (JPMS) modules to use the `org.javagi` prefix instead of `org.gnome`, `org.freedesktop` etc. This change should not break too much existing code, because many apps don't have a `module-info.java`. For those that do, it's a very small change. The package names are **not** changed, only the module names. The reason for renaming the modules is to improve consistency with the names of the artifacts on Maven Central, where we use the `org.java-gi` group. It is a bit illogical that the `org.java-gi:gtk` artifact on Maven Central is named `org.gnome.gtk` in `module-info.java`. | old name | new name | | -------- | -------- | | org.freedesktop.gstreamer | org.javagi.gstreamer | | org.gnome.adw | org.javagi.adw | | org.gnome.gdkpixbuf | org.javagi.gdkpixbuf | | org.gnome.glib | org.javagi.glib | | org.gnome.gtk | org.javagi.gtk | | org.gnome.gtksourceview | org.javagi.gtksourceview | | org.gnome.harfbuzz | org.javagi.harfbuzz | | org.gnome.pango | org.javagi.pango | | org.gnome.rsvg | org.javagi.rsvg | | org.gnome.secret | org.javagi.secret | | org.gnome.soup | org.javagi.soup | | org.webkitgtk | org.javagi.webkitgtk | This PR also bumps the version of the `cairo-java-bindings` dependency from 1.18.4.2 to 1.18.4.3. This is necessary because it's a "circular dependency": The cairo bindings use `org.java-gi:glib`, while `org.java-gi:gtk` depends on the cairo bindings. So we have to update the `module-info.java` in the cairo bindings together with the changes in Java-GI, or else the gtk module use an older cairo bindings version that refers to the old glib module name.
Renamed the (JPMS) modules to use the `org.javagi` prefix instead of `org.gnome`, `org.freedesktop` etc.
jwharm merged commit 7e6e568bb2 into main 2026-03-28 17:07:43 +01:00
jwharm deleted branch rename-modules 2026-03-28 17:07:51 +01:00
Sign in to join this conversation.
No description provided.