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" \