From d558d554b360a76d03c2fc09d327e3ec4aade878 Mon Sep 17 00:00:00 2001 From: Gregor Lohaus Date: Fri, 29 May 2026 12:29:36 +0200 Subject: [PATCH] bytecode v25 --- README.md | 2 +- build.gradle.kts | 2 +- flake.nix | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index adb4883..0fabb47 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Java FFM bindings for Ghostty's `libghostty-vt`. -This project targets Java 22+ and uses `java.lang.foreign`, not JNI. The build is Nix-first, but the output is a normal Maven repository that can be consumed from Gradle. +This project targets Java 25+ and uses `java.lang.foreign`, not JNI. The build is Nix-first, but the output is a normal Maven repository that can be consumed from Gradle. Ghostty's C API is still evolving upstream, so the ergonomic Java API is intentionally focused on the parts needed to embed the VT parser and renderer state in Java applications. The raw native symbol surface is still available through `GhosttyNative`. diff --git a/build.gradle.kts b/build.gradle.kts index 1737c9f..a86fa80 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -25,7 +25,7 @@ dependencies { } tasks.withType().configureEach { - options.release.set(22) + options.release.set(25) } tasks.test { diff --git a/flake.nix b/flake.nix index 595c93b..f83aa90 100644 --- a/flake.nix +++ b/flake.nix @@ -80,7 +80,7 @@ cp "$ghostty_lib" "$bundled_lib" find src/main/java -name '*.java' | sort > build/sources.txt - javac --release 22 --module-path ${graalvm}/jmods -d build/classes @build/sources.txt + javac --release 25 --module-path ${graalvm}/jmods -d build/classes @build/sources.txt jar --create \ --file build/${artifactId}-${version}.jar \ @@ -93,7 +93,7 @@ find src/test/java -name '*.java' | sort > build/test-sources.txt if [ -s build/test-sources.txt ]; then - javac --release 22 -cp build/classes -d build/test-classes @build/test-sources.txt + javac --release 25 -cp build/classes -d build/test-classes @build/test-sources.txt java \ --enable-native-access=ALL-UNNAMED \ -Djlibghostty.library.path="$bundled_lib" \