Migrate Designer modules and preview fixtures to Java 25
This commit is contained in:
@@ -25,7 +25,7 @@ Start with the [Person desk quick start](quick-start.md). It uses the real `fx-e
|
||||
- Opt-in generated Model metadata, generated Java ViewModel subclasses/registries and reviewed creation of a new editable FXML View.
|
||||
- A native macOS app/ZIP containing its own Java runtime and Kit, plus an IntelliJ plugin for the tested IDE build.
|
||||
|
||||
The tested host baseline is macOS arm64, Java 25 and JavaFX/Kit 26. The reference application uses Java 21 and JavaFX 21.0.7. IntelliJ is qualified against build **263.7307.200**. These are tested combinations, not a claim that arbitrary JavaFX, JDK, IDE or OS versions work.
|
||||
The tested host baseline is macOS arm64, Java 25 and JavaFX/Kit 26. The reference application uses Java 25 and JavaFX 27.0.1. IntelliJ is qualified against build **263.7307.200**. These are tested combinations, not a claim that arbitrary JavaFX, JDK, IDE or OS versions work.
|
||||
|
||||
The current artifacts are development snapshots: NeitzelLib `1.0-SNAPSHOT` and Designer tooling `0.1.0-SNAPSHOT`. They must be built/installed locally or obtained from an explicitly provided development build. There is no published stable runtime minimum, public Maven repository or signed/notarized release implied by these instructions.
|
||||
|
||||
|
||||
@@ -29,10 +29,10 @@ flowchart TD
|
||||
| `designer-kit-ui` | Shared Kit UI, source projection, binding panels and diagnostics |
|
||||
| `designer-standalone` | Local document/window implementation and launcher |
|
||||
| `designer-intellij` | Native IDE Documents, commands, navigation, Problems and toolkit gate |
|
||||
| `designer-preview-api` | Small Java 21 sample provider/session contract, optionally test-scoped in applications |
|
||||
| `designer-target-tools` | Java 21 worker, runtime adapter, discovery and rendering |
|
||||
| `designer-preview-api` | Small Java 25 sample provider/session contract, optionally test-scoped in applications |
|
||||
| `designer-target-tools` | Java 25 worker, runtime adapter, discovery and rendering |
|
||||
| `designer-maven-plugin` | Captures Maven's effective application runtime for immutable snapshots |
|
||||
| `designer-model-processor` | Optional Java 21 compile-time Model metadata and ViewModel generation |
|
||||
| `designer-model-processor` | Optional Java 25 compile-time Model metadata and ViewModel generation |
|
||||
|
||||
The application depends on NeitzelLib FX/core/injection and its own JavaFX runtime, not the host. Preview providers depend on the small API; annotation processing depends on the processor. The target tool JARs are supplied by the host. The shared UI uses a narrow patched Kit source with recorded provenance; see [third-party notices](../../THIRD-PARTY-NOTICES.md). The Kit patch retains its BSD-3-Clause notice. The original Designer code currently has no assigned license, as the notices state; a public repository alone does not establish reuse permission. Retain the applicable third-party licenses and notices when redistributing those components. See [module boundaries](../module-host-boundaries.md) for extension points.
|
||||
|
||||
|
||||
@@ -14,8 +14,10 @@ Commit `neitzel-fx-designer.json` at the Maven reactor root. This example select
|
||||
"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",
|
||||
@@ -53,9 +55,9 @@ Keep machine paths out of the committed context. An ignored `.neitzel-fx-designe
|
||||
{
|
||||
"schemaVersion": "1.0",
|
||||
"runtimes": {
|
||||
"java21": {
|
||||
"build": "/absolute/path/to/jdk-21",
|
||||
"target": "/absolute/path/to/jdk-21"
|
||||
"java25": {
|
||||
"build": "/absolute/path/to/jdk-25",
|
||||
"target": "/absolute/path/to/jdk-25"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,15 +4,15 @@ This walkthrough uses NeitzelLib's `fx-example`, package `de.neitzel.fx.example`
|
||||
|
||||
## 1. Run the JavaFX application first
|
||||
|
||||
Use a full JDK 21 and Maven. From the NeitzelLib checkout:
|
||||
Use a full JDK 25 and Maven. From the NeitzelLib checkout:
|
||||
|
||||
```sh
|
||||
export JAVA_HOME=/absolute/path/to/jdk-21
|
||||
mvn -B -ntp -pl fx-example -am -Dmaven.test.failure.ignore=false install
|
||||
export JAVA_HOME=/absolute/path/to/jdk-25
|
||||
mvn -B -ntp -pl fx-example -am install
|
||||
mvn -pl fx-example javafx:run
|
||||
```
|
||||
|
||||
**Check test reports:** NeitzelLib’s parent POM currently hardcodes `testFailureIgnore=true`; the command-line flag alone does not override it. Inspect the nonempty `target/surefire-reports/TEST-*.xml` files in core, injection, fx and fx-example and require zero failures/errors before trusting either normal or preview-profile builds. A Maven `BUILD SUCCESS` alone is insufficient.
|
||||
Surefire fails the build on test failures. The XML reports record which tests ran.
|
||||
|
||||
The first command builds/installs the required reactor modules. The second launches only the application module; do not add `-am` to `javafx:run`, because the parent and library modules have no application entry point. The `Main` launcher calls `Application.launch(DeskApp.class, args)`. `DeskApp` creates the sample Person and injection context, then loads `view/Desk.fxml` through NeitzelLib's `ViewLoader`.
|
||||
|
||||
@@ -32,7 +32,7 @@ export JAVA_HOME=/absolute/path/to/jdk-25
|
||||
-DincludeScope=runtime -Dmdep.outputFile=target/runtime-classpath.txt
|
||||
```
|
||||
|
||||
This installs the Java 21 preview API, Model processor and Maven capture plugin, as well as building the shared host and worker tools. It does not build/install an IntelliJ plugin or publish artifacts remotely. The host requires JDK 25; the project-side tools and reference application use JDK 21.
|
||||
This installs the Java 25 preview API, Model processor and Maven capture plugin, as well as building the shared host and worker tools. It does not build/install an IntelliJ plugin or publish artifacts remotely. The host, project-side tools and reference application require JDK 25.
|
||||
|
||||
`check-bootstrap.py` and `package-standalone.py` are **maintainer qualification** commands with an exact local runtime-artifact hash gate. After rebuilding/installing NeitzelLib, use the development launcher below unless that new runtime has been explicitly requalified and its provenance recorded. The [runtime baseline record](../runtime/neitzellib-baseline.md) explains the gate. Do not describe an unqualified source build as the recorded packaged release.
|
||||
|
||||
@@ -45,11 +45,10 @@ The current NeitzelLib checkout contains:
|
||||
- `fx-example/src/designer/resources/META-INF/neitzel-fx-designer/examples.properties`: non-executing sample descriptors;
|
||||
- the optional profile in `fx-example/pom.xml`: test-scoped preview API, profile-only test sources/resources and generated Model metadata.
|
||||
|
||||
From NeitzelLib with JDK 21, validate that optional profile:
|
||||
From NeitzelLib with JDK 25, validate that optional profile:
|
||||
|
||||
```sh
|
||||
mvn -B -ntp -pl fx-example -am -Pdesigner-preview \
|
||||
-Dmaven.test.failure.ignore=false verify
|
||||
mvn -B -ntp -pl fx-example -am -Pdesigner-preview verify
|
||||
```
|
||||
|
||||
The profile generates Model metadata for Person, Address and Note. It does **not** replace the hand-written `PersonViewModel` with a generated default. Without the profile, the normal application has no Designer preview dependency. Use a clean build when switching profiles if you need to prove that profile-only test output and generated metadata have been removed.
|
||||
@@ -61,7 +60,7 @@ From the Designer checkout:
|
||||
```sh
|
||||
python3 scripts/configure-library-example.py \
|
||||
--library /absolute/path/to/NeitzelLib \
|
||||
--target-java-home /absolute/path/to/jdk-21
|
||||
--target-java-home /absolute/path/to/jdk-25
|
||||
```
|
||||
|
||||
The helper writes ignored `.neitzel-fx-designer/runtimes.json` and `host.properties` under NeitzelLib. It uses the Designer Maven wrapper as the explicit fallback and current built worker-tool JARs. It refuses to overwrite existing settings; edit existing files explicitly. Machine paths belong here, not in the shared project configuration.
|
||||
@@ -110,7 +109,7 @@ python3 scripts/check-library-example.py \
|
||||
--library /absolute/path/to/NeitzelLib \
|
||||
--app /path/to/NeitzelFXDesigner.app \
|
||||
--java-home /absolute/path/to/jdk-25 \
|
||||
--target-java-home /absolute/path/to/jdk-21
|
||||
--target-java-home /absolute/path/to/jdk-25
|
||||
```
|
||||
|
||||
The script copies the actual NeitzelLib checkout into a temporary directory. It builds that reactor through the real Designer, checks generated Model discovery, canvas pixels, source history/save, Component navigation and all five View-specific interactive samples. The external test agent is not shipped with the app or sample. It does not install rebuilt NeitzelLib JARs into your local Maven repository.
|
||||
|
||||
Reference in New Issue
Block a user