diff --git a/AGENTS.md b/AGENTS.md index b0b91be..ced5163 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -12,6 +12,6 @@ contract, including safe `toString` output. Keep Lombok compile-time-only and preserve every annotation processor in profile-specific configurations. Run affected module tests, including FXML/reflection and generated metadata when -models change. Inspect Surefire XML: the parent currently ignores test failures. +models change. Inspect Surefire XML for test totals and skips. Do not install changed runtime artifacts over a Designer-pinned baseline without explicitly qualifying and recording the replacement. diff --git a/README.md b/README.md index 49c8e34..302f696 100644 --- a/README.md +++ b/README.md @@ -75,13 +75,13 @@ Some additions for quarkus that might be useful. The [complete quick start](fx/docs/quick-start.md) includes local snapshot installation, a standalone Maven POM, Java classes, FXML and launch commands. Continue with [MVVM and runtime architecture](fx/docs/architecture.md), the [FXML reference](fx/README.md), and the [person desk walkthrough](fx-example/README.md). The [injection guide](injection/README.md) also covers use without JavaFX. -Build with Java 21. Maven wrapper version is 3.9.11; the project requires Maven 3.8.6 or later. Library version `1.0-SNAPSHOT` denotes development artifacts, not a published stable release. The parent POM currently ignores Surefire failures: check test reports, as explained in the quick start, rather than relying only on Maven's exit code. +Build with Java 25. Maven wrapper version is 3.9.11; the project requires Maven 3.9.11 or later. Library version `1.0-SNAPSHOT` denotes development artifacts, not a published stable release. Surefire fails the build if tests fail. ## Java source conventions Use focused Lombok annotations for mechanical accessors, constructors and logging; see [the contributor instructions](AGENTS.md). The parent already configures -Lombok 1.18.42 as a provided dependency and an explicit annotation processor. +Lombok 1.18.48 as a provided dependency and an explicit annotation processor. It is not required at runtime. Each checkout has a `lombok.config` boundary so workstation-level settings cannot silently change generated APIs. diff --git a/core/pom.xml b/core/pom.xml index 5dbf8f2..53a57be 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -24,7 +24,7 @@ net.java.dev.jna jna - 5.13.0 + 5.19.1 org.reflections diff --git a/fx-example/README.md b/fx-example/README.md index 591bd0b..6aac1d4 100644 --- a/fx-example/README.md +++ b/fx-example/README.md @@ -4,14 +4,14 @@ This runnable application demonstrates [NeitzelLib FX](../fx/README.md) and [inj ## Build and run -From the NeitzelLib root with JDK 21: +From the NeitzelLib root with JDK 25: ```bash ./mvnw -pl fx-example -am install ./mvnw -f fx-example/pom.xml javafx:run ``` -The first command installs local `1.0-SNAPSHOT` artifacts; the second runs only the application module. Do not combine `javafx:run` with `-am`, since the parent has no JavaFX launcher. The repository currently ignores Surefire failures; verify XML reports as shown in the [quick start](../fx/docs/quick-start.md), even when Maven reports success. +The first command installs local `1.0-SNAPSHOT` artifacts; the second runs only the application module. Do not combine `javafx:run` with `-am`, since the parent has no JavaFX launcher. See the [quick start](../fx/docs/quick-start.md) for test reports. The packaged alternative, after `package` or `install`, is: diff --git a/fx-example/pom.xml b/fx-example/pom.xml index c4a56c0..2d1b3a9 100644 --- a/fx-example/pom.xml +++ b/fx-example/pom.xml @@ -105,7 +105,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.6.1 + 3.8.0 designer-preview-sources diff --git a/fx/README.md b/fx/README.md index f656891..e8b7e93 100644 --- a/fx/README.md +++ b/fx/README.md @@ -16,10 +16,10 @@ You write the model, the FXML, and, where a screen needs them, a controller, reusable components, and converters. The library creates the view model. The [injection](../injection/README.md) container creates the controller, each component, and each converter. -The worked example is the `fx-example` module, package `de.neitzel.fx.example`. From the NeitzelLib root, with Java 21: +The worked example is the `fx-example` module, package `de.neitzel.fx.example`. From the NeitzelLib root, with Java 25: ```bash -./mvnw -pl fx-example -am -Dmaven.test.failure.ignore=false install +./mvnw -pl fx-example -am install ./mvnw -f fx-example/pom.xml javafx:run ``` @@ -33,15 +33,15 @@ These are the versions configured by this source snapshot, not a promise of comp | Part | Baseline / relationship | Consumer responsibility | | --- | --- | --- | -| JDK | Java 21 | Select a matching JDK for compilation and launch | -| Maven | Minimum 3.8.6; wrapper 3.9.11 | Use the wrapper or an installed Maven | +| JDK | Java 25 | Select a matching JDK for compilation and launch | +| Maven | Minimum 3.9.11; wrapper 3.9.11 | Use the wrapper or an installed Maven | | Library | `de.neitzel.lib:fx:1.0-SNAPSHOT` | Install the local reactor first; no Central publication is assumed | | Internal modules | `fx` directly depends on `core` and `injection` | Resolved transitively through Maven | -| JavaFX | 21.0.7: base, graphics, controls, FXML and web | Resolved transitively; deployment still needs platform-native artifacts | +| JavaFX | 27.0.1: base, graphics, controls, FXML and web | Resolved transitively; deployment still needs platform-native artifacts | | Injection scanning | Reflections 0.10.2 | Brought by `injection` | | Injection annotations | `jakarta.inject-api` 2.0.1 | Use Jakarta annotations, not `javax.inject` | -| Logging | SLF4J API 2.0.17 | Choose one logging backend; the example uses `slf4j-simple` 2.0.17 at runtime | -| Library build | Lombok 1.18.42 and test/analysis tooling | Not required in ordinary consumer source; use your own annotations only if wanted | +| Logging | SLF4J API 2.0.20 | Choose one logging backend; the example uses `slf4j-simple` 2.0.20 at runtime | +| Library build | Lombok 1.18.48 and test/analysis tooling | Not required in ordinary consumer source; use your own annotations only if wanted | | Designer | Optional preview API / Model processor | Needed only for the selected Designer workflow, not normal `ViewLoader` use | The quick-start POM adds only `fx` and a logging backend. Do not copy library build-time dependencies into an application just to obtain runtime binding. A project using injection alone needs the `injection` artifact and does not need JavaFX. diff --git a/fx/docs/quick-start.md b/fx/docs/quick-start.md index c362263..99174f5 100644 --- a/fx/docs/quick-start.md +++ b/fx/docs/quick-start.md @@ -1,19 +1,19 @@ # Your first JavaFX application -This walkthrough creates a complete Maven project with one editable name and a label that follows it. It uses Java 21, JavaFX 21.0.7 and the current `1.0-SNAPSHOT` NeitzelLib sources. These are local development artifacts; the instructions do not assume that this snapshot is published in Maven Central. +This walkthrough creates a complete Maven project with one editable name and a label that follows it. It uses Java 25, JavaFX 27.0.1 and the current `1.0-SNAPSHOT` NeitzelLib sources. These are local development artifacts; the instructions do not assume that this snapshot is published in Maven Central. ## Prepare the library -Install a JDK 21. Use the library's Maven wrapper (3.9.11), or a separate Maven installation version 3.8.6 or newer. Check `java -version` and `./mvnw -version` before building; on macOS, select the JDK with `export JAVA_HOME=$(/usr/libexec/java_home -v 21)` if necessary. +Install a JDK 25. Use the library's Maven wrapper (3.9.11), or a separate Maven installation version 3.9.11 or newer. Check `java -version` and `./mvnw -version` before building; on macOS, select the JDK with `export JAVA_HOME=$(/usr/libexec/java_home -v 25)` if necessary. ```bash git clone https://gitea.neitzel.de/konrad/NeitzelLib.git cd NeitzelLib -./mvnw -pl fx-example -am -Dmaven.test.failure.ignore=false install +./mvnw -pl fx-example -am install ./mvnw -f fx-example/pom.xml javafx:run ``` -The `install` command installs the parent POM, `core`, `injection` and `fx` into your local Maven repository and builds the example. The repository hardcodes Surefire failure-ignore, so Maven success alone does not establish passing tests, even with the explicit flag. Inspect the XML reports as shown below. The `javafx:run` command opens the [person desk example](../../fx-example/README.md). Run `javafx:run` only on the example POM, not with `-am`: the reactor parent is not a JavaFX application. +The `install` command installs the parent POM, `core`, `injection` and `fx` into your local Maven repository and builds the example. Surefire fails the build when a test fails. The XML reports show which tests ran. The `javafx:run` command opens the [person desk example](../../fx-example/README.md). Run `javafx:run` only on the example POM, not with `-am`: the reactor parent is not a JavaFX application. Check test results after the build (requires Python 3): @@ -59,7 +59,7 @@ hello-fx/ hello-fx 1.0-SNAPSHOT - 21 + 25 UTF-8 @@ -71,7 +71,7 @@ hello-fx/ org.slf4j slf4j-simple - 2.0.17 + 2.0.20 runtime @@ -80,7 +80,7 @@ hello-fx/ org.apache.maven.plugins maven-compiler-plugin - 3.14.1 + 3.16.0 org.openjfx @@ -155,7 +155,7 @@ public final class HelloApp extends Application { - diff --git a/fx/src/main/java/de/neitzel/fx/tray/MacApplicationQuit.java b/fx/src/main/java/de/neitzel/fx/tray/MacApplicationQuit.java index 7f633b9..d00de5f 100644 --- a/fx/src/main/java/de/neitzel/fx/tray/MacApplicationQuit.java +++ b/fx/src/main/java/de/neitzel/fx/tray/MacApplicationQuit.java @@ -2,7 +2,9 @@ package de.neitzel.fx.tray; import com.sun.glass.ui.Application; -/** Isolates the JavaFX 21 native Quit hook, which has no public JavaFX equivalent. */ +import java.util.Map; + +/** Isolates the JavaFX native Quit hook, which has no public JavaFX equivalent. */ final class MacApplicationQuit { private MacApplicationQuit() {} @@ -24,7 +26,12 @@ final class MacApplicationQuit { @Override public void handleWillUnhideAction(Application a, long t) { if (previous != null) previous.handleWillUnhideAction(a,t); } @Override public void handleDidUnhideAction(Application a, long t) { if (previous != null) previous.handleDidUnhideAction(a,t); } @Override public void handleOpenFilesAction(Application a, long t, String[] files) { if (previous != null) previous.handleOpenFilesAction(a,t,files); } - @Override public boolean handleThemeChanged(String theme) { return previous != null && previous.handleThemeChanged(theme); } + @Override + public void handlePreferencesChanged(Map preferences) { + if (previous != null) { + previous.handlePreferencesChanged(preferences); + } + } }; app.setEventHandler(handler); return () -> { diff --git a/gson/pom.xml b/gson/pom.xml index 45f8687..87e28e7 100644 --- a/gson/pom.xml +++ b/gson/pom.xml @@ -20,7 +20,7 @@ ${project.artifactId}-${project.version} - 2.11.0 + 2.15.0 diff --git a/injection/README.md b/injection/README.md index 14d9357..4101880 100644 --- a/injection/README.md +++ b/injection/README.md @@ -8,7 +8,7 @@ The worked example is the person desk in `fx-example`, package `de.neitzel.fx.ex ## Quick start -Depend on the module. It brings Reflections 0.10.2 and `jakarta.inject-api` 2.0.1 (plus shared logging dependencies). The parent artifact is `de.neitzel.lib:neitzellib:1.0-SNAPSHOT`. Java 21. +Depend on the module. It brings Reflections 0.10.2 and `jakarta.inject-api` 2.0.1 (plus shared logging dependencies). The parent artifact is `de.neitzel.lib:neitzellib:1.0-SNAPSHOT`. Java 25. ```xml diff --git a/neitzel-fx-designer.json b/neitzel-fx-designer.json index 57a5da2..e041140 100644 --- a/neitzel-fx-designer.json +++ b/neitzel-fx-designer.json @@ -5,8 +5,10 @@ "applicationModule": "fx-example", "mavenProfiles": ["designer-preview"], "launchMode": "classpath", - "buildRuntime": "java21", - "targetRuntime": "java21", + "buildRuntime": "java25", + "targetRuntime": "java25", + "buildJava": 25, + "targetJava": 25, "preview": { "sourceSet": "test", "provider": "de.neitzel.fx.example.preview.DeskPreviewProvider", diff --git a/pom.xml b/pom.xml index a93a291..03dbc6f 100644 --- a/pom.xml +++ b/pom.xml @@ -23,39 +23,39 @@ - 21 - 3.8.6 + 25 + 3.9.11 2.0.1 - 21.0.7 - 26.0.2 - 6.0.1 - 1.18.42 - 5.20.0 + 27.0.1 + 26.1.0 + 6.1.3 + 1.18.48 + 5.24.0 0.10.2 - 2.0.17 + 2.0.20 - 2.20.1 + 2.25.2 0.0.8 0.1.5 3.5.0 - 3.14.1 - 3.6.1 - 3.1.4 - 3.4.1 - 3.1.2 - 3.5.0 + 3.16.0 + 3.11.0 + 3.2.0 + 3.7.0 + 3.2.0 + 3.5.1 3.12.0 3.9.0 - 3.4.0 + 3.5.0 3.5.3 4.0.0-M16 - 3.5.4 + 3.6.1 1.0.0.RC2 3.28.0 - 4.9.8.2 + 4.10.5.0 pmd @@ -246,7 +246,7 @@ maven-surefire-plugin ${maven.surfire.plugin} - true + false diff --git a/quarkus/pom.xml b/quarkus/pom.xml index 51ca136..44aa56f 100644 --- a/quarkus/pom.xml +++ b/quarkus/pom.xml @@ -19,7 +19,7 @@ ${project.artifactId} ${project.artifactId}-${project.version} - 3.30.1 + 3.40.1.2