diff --git a/README.md b/README.md index 7ff8e38a..b35904f2 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@ # Java-GI -**Java-GI** is a tool for generating GObject-Introspection bindings for Java. The generated bindings use the new [Foreign Function & Memory API](https://openjdk.org/projects/panama/) (JEP 454) to directly access native resources from inside the JVM, with wrapper classes based on GObject-Introspection to offer an elegant API. Java-GI version 0.10 generates bindings to develop Java applications for libraries, based of the versions in GNOME Platform 46: - -| Library | Java-GI 0.7.x | Java-GI 0.8.x and 0.9.x | Java-GI 0.10.x | -|---------------|---------------|-------------------------|----------------| -| OpenJDK | 20 | 21 | 22 | -| GLib | 2.76 | 2.78 | 2.80 | -| GTK | 4.10 | 4.12 | 4.14 | -| LibAdwaita | 1.3 | 1.4 | 1.5 | -| GStreamer | 1.20 | 1.22 | 1.22 | -| GtkSourceview | 5.9 | 5.10 | 5.12 | -| WebkitGtk | 2.41 | 2.42 | 2.44 | +**Java-GI** is a tool for generating GObject-Introspection bindings for Java. The generated bindings use the new [Foreign Function & Memory API](https://openjdk.org/projects/panama/) (JEP 454) to directly access native resources from inside the JVM, with wrapper classes based on GObject-Introspection to offer an elegant API. Java-GI version 0.11 generates bindings to develop Java applications for libraries, based of the versions in GNOME Platform 47: + +| Library | Java-GI 0.11.x | Java-GI 0.10.x | Java-GI 0.8.x and 0.9.x | Java-GI 0.7.x | +|---------------|----------------|----------------|-------------------------|---------------| +| OpenJDK | 22 | 22 | 21 | 20 | +| GLib | 2.82 | 2.80 | 2.78 | 2.76 | +| GTK | 4.16 | 4.14 | 4.12 | 4.10 | +| LibAdwaita | 1.6 | 1.5 | 1.4 | 1.3 | +| GStreamer | 1.24 | 1.22 | 1.22 | 1.20 | +| GtkSourceview | 5.14 | 5.12 | 5.10 | 5.9 | +| WebkitGtk | 2.46 | 2.44 | 2.42 | 2.41 | Please note that Java-GI is still under active development. The bindings should not be used in a production environment yet, and the API is subject to unannounced changes. However, feel free to try out the latest release; feedback is welcome. @@ -67,7 +67,7 @@ repositories { } dependencies { - implementation 'io.github.jwharm.javagi:gtk:0.10.2' + implementation 'io.github.jwharm.javagi:gtk:0.11.0' } ``` @@ -195,7 +195,7 @@ A class with a `@GtkTemplate` annotation will be registered as a Gtk composite t @GtkTemplate(name="HelloWindow", ui="/my/example/hello-window.ui") public class HelloWindow extends ApplicationWindow { - private static Type gtype = Types.register(HelloWindow.class); + private static Type gtype = TemplateTypes.register(HelloWindow.class); @GtkChild(name="header_bar") public HeaderBar header; diff --git a/buildSrc/src/main/groovy/java-gi.library-conventions.gradle b/buildSrc/src/main/groovy/java-gi.library-conventions.gradle index 0bb0c106..5dc6eb29 100644 --- a/buildSrc/src/main/groovy/java-gi.library-conventions.gradle +++ b/buildSrc/src/main/groovy/java-gi.library-conventions.gradle @@ -32,7 +32,7 @@ dependencies { } group = 'io.github.jwharm.javagi' -version = '0.11.0-SNAPSHOT' +version = '0.11.0' java { if (! System.getenv('CI')) { diff --git a/docs/getting-started/getting_started_01.md b/docs/getting-started/getting_started_01.md index b94d4b9b..4fe00cfb 100644 --- a/docs/getting-started/getting_started_01.md +++ b/docs/getting-started/getting_started_01.md @@ -28,7 +28,7 @@ repositories { } dependencies { - implementation 'io.github.jwharm.javagi:gtk:0.10.2' + implementation 'io.github.jwharm.javagi:gtk:0.11.0' } java { diff --git a/docs/index.md b/docs/index.md index fbeb5a07..94bea1ba 100644 --- a/docs/index.md +++ b/docs/index.md @@ -18,17 +18,17 @@ Please note that Java-GI is still under active development. Feedback is welcome. ## Supported -Java-GI version 0.10 requires OpenJDK 22 or newer. Version 0.8.x and 0.9.x require OpenJDK 21, and version 0.7.2 works with OpenJDK 20. They have been built with the following library versions: - -| Library | Java-GI 0.10.x | Java-GI 0.8.x and 0.9.x | Java-GI 0.7.x | -|---------------|----------------|-------------------------|---------------| -| OpenJDK | 22 | 21 | 20 | -| GLib | 2.80 | 2.78 | 2.76 | -| GTK | 4.14 | 4.12 | 4.10 | -| LibAdwaita | 1.5 | 1.4 | 1.3 | -| GStreamer | 1.22 | 1.22 | 1.20 | -| GtkSourceview | 5.12 | 5.10 | 5.9 | -| WebkitGtk | 2.44 | 2.42 | 2.41 | +Java-GI version 0.11 requires OpenJDK 22 or newer. Version 0.8.x and 0.9.x work with OpenJDK 21, and version 0.7.2 works with OpenJDK 20. They have been built with the following library versions: + +| Library | Java-GI 0.11.x | Java-GI 0.10.x | Java-GI 0.8.x and 0.9.x | Java-GI 0.7.x | +|---------------|----------------|----------------|-------------------------|---------------| +| OpenJDK | 22 | 22 | 21 | 20 | +| GLib | 2.82 | 2.80 | 2.78 | 2.76 | +| GTK | 4.16 | 4.14 | 4.12 | 4.10 | +| LibAdwaita | 1.6 | 1.5 | 1.4 | 1.3 | +| GStreamer | 1.24 | 1.22 | 1.22 | 1.20 | +| GtkSourceview | 5.14 | 5.12 | 5.10 | 5.9 | +| WebkitGtk | 2.46 | 2.44 | 2.42 | 2.41 | The Java bindings for these libraries are available from [Maven Central](https://central.sonatype.com/search?namespace=io.github.jwharm.javagi). diff --git a/docs/usage.md b/docs/usage.md index 163a347d..6f9dd804 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -20,7 +20,7 @@ Next, add the dependencies. For example, to add Gtk as a dependency: io.github.jwharm.javagi gtk - 0.10.2 + 0.11.0 ``` @@ -32,7 +32,7 @@ Next, add the dependencies. For example, to add Gtk as a dependency: } dependencies { - implementation 'io.github.jwharm.javagi:gtk:0.10.2' + implementation 'io.github.jwharm.javagi:gtk:0.11.0' } ``` @@ -44,20 +44,20 @@ Next, add the dependencies. For example, to add Gtk as a dependency: } dependencies { - implementation("io.github.jwharm.javagi:gtk:0.10.2") + implementation("io.github.jwharm.javagi:gtk:0.11.0") } ``` === "Scala SBT" ```scala - libraryDependencies += "io.github.jwharm.javagi" % "gtk" % "0.10.2" + libraryDependencies += "io.github.jwharm.javagi" % "gtk" % "0.11.0" ``` === "Leiningen" ```clojure - [io.github.jwharm.javagi/gtk "0.10.2"] + [io.github.jwharm.javagi/gtk "0.11.0"] ``` === "bld" @@ -67,7 +67,7 @@ Next, add the dependencies. For example, to add Gtk as a dependency: scope(main) .include(dependency("io.github.jwharm.javagi", "gtk", - version(0,10,2))); + version(0,11,0))); ``` This will add the Gtk bindings to the application's compile and runtime classpath. Other libraries, like `webkit`, `gst`, `adw` and `gtksourceview` can be included likewise. The complete list of available libraries is available [here](https://search.maven.org/search?q=io.github.jwharm.javagi).