Migrate Designer modules and preview fixtures to Java 25
This commit is contained in:
@@ -22,7 +22,7 @@ The Component builder fix is integrated in NeitzelLib main. A [verified local de
|
||||
|
||||
## Validate the foundation
|
||||
|
||||
Requirements: JDK 25 for builds, JDK 21 for target linkage validation, Python 3.10+, the recorded local NeitzelLib artifacts, and IntelliJ IDEA SDK build **263.7307.200**. Downloads require network access. Set `JAVA_HOME` to JDK 25 and supply explicit local paths:
|
||||
Requirements: JDK 25 for builds and target linkage validation, Python 3.10+, the recorded local NeitzelLib artifacts, and IntelliJ IDEA SDK build **263.7307.200**. Downloads require network access. Set `JAVA_HOME` to JDK 25 and supply explicit local paths:
|
||||
|
||||
```sh
|
||||
python3 scripts/check-bootstrap.py --idea-home "$IDEA_HOME" --target-java-home "$TARGET_JAVA_HOME"
|
||||
@@ -35,7 +35,7 @@ Maven is pinned to **3.9.11** (Wrapper **3.3.4**); the separate IntelliJ build u
|
||||
## Java source conventions
|
||||
|
||||
Use focused Lombok annotations for mechanical constructors/accessors/logging,
|
||||
as described in [AGENTS.md](AGENTS.md). Lombok **1.18.42** is compile-time-only:
|
||||
as described in [AGENTS.md](AGENTS.md). Lombok **1.18.48** is compile-time-only:
|
||||
Maven uses `provided` plus an explicit processor path; the IntelliJ Gradle build
|
||||
uses `compileOnly` and `annotationProcessor` (also for tests). Keep these versions
|
||||
aligned. `lombok.config` stops configuration inheritance outside this checkout.
|
||||
@@ -58,7 +58,7 @@ python3 scripts/run-fixture-host.py standalone --java-home "$JAVA_HOME" --target
|
||||
python3 scripts/run-fixture-host.py intellij --java-home "$JAVA_HOME" --target-java-home "$TARGET_JAVA_HOME" --idea-home "$IDEA_HOME"
|
||||
```
|
||||
|
||||
The IntelliJ launcher isolates settings/plugins and disables bundled Scene Builder embedding while retaining JavaFX/FXML language support. Select **Neitzel Designer**, then **Build and Refresh**. Both hosts use JavaFX/Kit 26, with the fixture application running separately on Java 21 / JavaFX 21.0.7.
|
||||
The IntelliJ launcher isolates settings/plugins and disables bundled Scene Builder embedding while retaining JavaFX/FXML language support. Select **Neitzel Designer**, then **Build and Refresh**. Both hosts use JavaFX/Kit 26, with the fixture application running separately on Java 25 / JavaFX 27.0.1.
|
||||
|
||||
Qualify the registered editor and loaded JavaFX natives in real disposable IDE windows:
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</parent>
|
||||
<artifactId>designer-contracts</artifactId>
|
||||
<properties>
|
||||
<module.java.release>21</module.java.release>
|
||||
<module.java.release>25</module.java.release>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</parent>
|
||||
<artifactId>designer-core</artifactId>
|
||||
<properties>
|
||||
<module.java.release>21</module.java.release>
|
||||
<module.java.release>25</module.java.release>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
||||
@@ -15,7 +15,7 @@ tasks.withType<JavaCompile>().configureEach { options.release.set(25) }
|
||||
val fxPlatform = if (System.getProperty("os.arch") == "aarch64") "mac-aarch64" else "mac"
|
||||
dependencies {
|
||||
// Keep aligned with the Maven parent's compile-time-only processor.
|
||||
val lombok = "org.projectlombok:lombok:1.18.42"
|
||||
val lombok = "org.projectlombok:lombok:1.18.48"
|
||||
compileOnly(lombok)
|
||||
annotationProcessor(lombok)
|
||||
testCompileOnly(lombok)
|
||||
|
||||
+4
-4
@@ -19,10 +19,10 @@ public final class ConnectedWorkflowTest extends BasePlatformTestCase {
|
||||
var runtimes =
|
||||
new ConfiguredRuntimes(
|
||||
Map.of(
|
||||
new ConfiguredRuntimes.Key("java21", HostServices.RuntimeRole.BUILD),
|
||||
new HostServices.RuntimeInstallation(java, 21),
|
||||
new ConfiguredRuntimes.Key("java21", HostServices.RuntimeRole.TARGET),
|
||||
new HostServices.RuntimeInstallation(java, 21)));
|
||||
new ConfiguredRuntimes.Key("java25", HostServices.RuntimeRole.BUILD),
|
||||
new HostServices.RuntimeInstallation(java, 25),
|
||||
new ConfiguredRuntimes.Key("java25", HostServices.RuntimeRole.TARGET),
|
||||
new HostServices.RuntimeInstallation(java, 25)));
|
||||
VfsRootAccess.allowRootAccess(
|
||||
getTestRootDisposable(), Path.of(fixtures).toRealPath().toString(), root.toString());
|
||||
try (var host =
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<packaging>maven-plugin</packaging>
|
||||
<prerequisites><maven>3.9.11</maven></prerequisites>
|
||||
<properties>
|
||||
<module.java.release>21</module.java.release>
|
||||
<module.java.release>25</module.java.release>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
@@ -28,7 +28,7 @@
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugin-tools</groupId>
|
||||
<artifactId>maven-plugin-annotations</artifactId>
|
||||
<version>3.15.1</version>
|
||||
<version>3.16.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
@@ -64,7 +64,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-plugin-plugin</artifactId>
|
||||
<version>3.15.1</version>
|
||||
<version>3.16.0</version>
|
||||
<configuration>
|
||||
<goalPrefix>neitzel-designer</goalPrefix>
|
||||
</configuration>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent><groupId>de.neitzel.fxdesigner</groupId><artifactId>neitzel-fx-designer</artifactId><version>0.1.0-SNAPSHOT</version></parent>
|
||||
<artifactId>designer-model-processor</artifactId>
|
||||
<properties><module.java.release>21</module.java.release></properties>
|
||||
<properties><module.java.release>25</module.java.release></properties>
|
||||
<dependencies>
|
||||
<dependency><groupId>de.neitzel.fxdesigner</groupId><artifactId>designer-contracts</artifactId><version>${project.version}</version></dependency>
|
||||
<dependency><groupId>org.junit.jupiter</groupId><artifactId>junit-jupiter</artifactId><scope>test</scope></dependency>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</parent>
|
||||
<artifactId>designer-preview-api</artifactId>
|
||||
<properties>
|
||||
<module.java.release>21</module.java.release>
|
||||
<module.java.release>25</module.java.release>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
||||
+3
-3
@@ -41,7 +41,7 @@ public final class BuildRefreshSmoke {
|
||||
root,
|
||||
"pom.xml",
|
||||
"""
|
||||
<project><modelVersion>4.0.0</modelVersion><groupId>fixture</groupId><artifactId>parent</artifactId><version>1</version><packaging>pom</packaging><modules><module>dep</module><module>app</module><module>unrelated</module></modules><properties><maven.compiler.release>21</maven.compiler.release></properties><profiles><profile><id>designer-preview</id><modules><module>preview</module></modules></profile></profiles><build><pluginManagement><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.14.1</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-resources-plugin</artifactId><version>3.3.1</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId><version>3.5.4</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-jar-plugin</artifactId><version>3.4.2</version></plugin></plugins></pluginManagement></build></project>
|
||||
<project><modelVersion>4.0.0</modelVersion><groupId>fixture</groupId><artifactId>parent</artifactId><version>1</version><packaging>pom</packaging><modules><module>dep</module><module>app</module><module>unrelated</module></modules><properties><maven.compiler.release>25</maven.compiler.release></properties><profiles><profile><id>designer-preview</id><modules><module>preview</module></modules></profile></profiles><build><pluginManagement><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.14.1</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-resources-plugin</artifactId><version>3.3.1</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId><version>3.5.4</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-jar-plugin</artifactId><version>3.4.2</version></plugin></plugins></pluginManagement></build></project>
|
||||
""");
|
||||
write(root, "dep/pom.xml", child("dep", ""));
|
||||
write(
|
||||
@@ -82,7 +82,7 @@ public final class BuildRefreshSmoke {
|
||||
root.resolve(".mvn/wrapper/maven-wrapper.properties"));
|
||||
Path config = root.resolve("neitzel-fx-designer.json");
|
||||
write(root, "neitzel-fx-designer.json", configuration(true));
|
||||
var runtime = new HostServices.RuntimeInstallation(javaHome, 21);
|
||||
var runtime = new HostServices.RuntimeInstallation(javaHome, 25);
|
||||
var mapping =
|
||||
new ConfiguredRuntimes(
|
||||
Map.of(
|
||||
@@ -163,7 +163,7 @@ public final class BuildRefreshSmoke {
|
||||
System.out.println(
|
||||
"PASS real Maven Build and Refresh: "
|
||||
+ checks
|
||||
+ " checks (Java 21, profile/module preview, test preview, scope, resources,"
|
||||
+ " checks (Java 25, profile/module preview, test preview, scope, resources,"
|
||||
+ " isolation, failed build retention)");
|
||||
} finally {
|
||||
Path log = repository.resolve("designer-standalone/target/build-refresh-smoke.log");
|
||||
|
||||
+4
-4
@@ -26,10 +26,10 @@ public final class WorkflowSmoke {
|
||||
var runtimes =
|
||||
new ConfiguredRuntimes(
|
||||
Map.of(
|
||||
new ConfiguredRuntimes.Key("java21", HostServices.RuntimeRole.BUILD),
|
||||
new HostServices.RuntimeInstallation(java, 21),
|
||||
new ConfiguredRuntimes.Key("java21", HostServices.RuntimeRole.TARGET),
|
||||
new HostServices.RuntimeInstallation(java, 21)));
|
||||
new ConfiguredRuntimes.Key("java25", HostServices.RuntimeRole.BUILD),
|
||||
new HostServices.RuntimeInstallation(java, 25),
|
||||
new ConfiguredRuntimes.Key("java25", HostServices.RuntimeRole.TARGET),
|
||||
new HostServices.RuntimeInstallation(java, 25)));
|
||||
var tools =
|
||||
List.of(
|
||||
root.resolve("designer-target-tools/target/designer-target-tools-0.1.0-SNAPSHOT.jar"),
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</parent>
|
||||
<artifactId>designer-target-tools</artifactId>
|
||||
<properties>
|
||||
<module.java.release>21</module.java.release>
|
||||
<module.java.release>25</module.java.release>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
"schemaVersion": 1,
|
||||
"status": "verified-local-development-snapshot",
|
||||
"sourceRepository": "ssh://git@gitea.neitzel.de:2222/konrad/NeitzelLib.git",
|
||||
"sourceRevision": "90e08b7835501f6810f12b845d7a9dacd7749425",
|
||||
"sourceRevision": "75b733abe300bea799a59664f0d5a9dbc21d315b",
|
||||
"minimumReleasedVersion": null,
|
||||
"requiredCapability": "component-fxml-attributes-after-initialization",
|
||||
"javaVersion": "21",
|
||||
"javafxVersion": "21.0.7",
|
||||
"javaVersion": "25",
|
||||
"javafxVersion": "27.0.1",
|
||||
"testResults": {
|
||||
"core": {
|
||||
"tests": 1,
|
||||
"tests": 9,
|
||||
"failures": 0,
|
||||
"errors": 0,
|
||||
"skipped": 0
|
||||
@@ -27,7 +27,6 @@
|
||||
"skipped": 0
|
||||
}
|
||||
},
|
||||
"adapterFreeCanvasChecks": 38,
|
||||
"artifacts": [
|
||||
{
|
||||
"groupId": "de.neitzel.lib",
|
||||
@@ -35,7 +34,7 @@
|
||||
"version": "1.0-SNAPSHOT",
|
||||
"extension": "pom",
|
||||
"repositoryPath": "de/neitzel/lib/neitzellib/1.0-SNAPSHOT/neitzellib-1.0-SNAPSHOT.pom",
|
||||
"sha256": "e1f7931ab7f1e632117a024fd46c9932a95e343f10de8dec3106bf4a9b9dfe3c"
|
||||
"sha256": "23f7507a215f42d1ace3a25586b16b154ff0810a381f508e4554b94f92e8e529"
|
||||
},
|
||||
{
|
||||
"groupId": "de.neitzel.lib",
|
||||
@@ -43,7 +42,7 @@
|
||||
"version": "1.0-SNAPSHOT",
|
||||
"extension": "pom",
|
||||
"repositoryPath": "de/neitzel/lib/core/1.0-SNAPSHOT/core-1.0-SNAPSHOT.pom",
|
||||
"sha256": "0be257c955a52dbf419ece55675d8eab232d537b1460960e0ca106b16bf71232"
|
||||
"sha256": "bed4167d3bc74f3bccb3f1328eb796b735bd60ec35aa881219edcce2a562fbd2"
|
||||
},
|
||||
{
|
||||
"groupId": "de.neitzel.lib",
|
||||
@@ -51,7 +50,7 @@
|
||||
"version": "1.0-SNAPSHOT",
|
||||
"extension": "jar",
|
||||
"repositoryPath": "de/neitzel/lib/core/1.0-SNAPSHOT/core-1.0-SNAPSHOT.jar",
|
||||
"sha256": "2fc2b717f48628f3fd24437fe480f5acfeb55cd2c7d4a65fdd1df0275cd28810"
|
||||
"sha256": "a88374553bbb7c0dce9b1f5cc237601fa6d26db81b505f5e776ad13fa4db0db8"
|
||||
},
|
||||
{
|
||||
"groupId": "de.neitzel.lib",
|
||||
@@ -67,7 +66,7 @@
|
||||
"version": "1.0-SNAPSHOT",
|
||||
"extension": "jar",
|
||||
"repositoryPath": "de/neitzel/lib/injection/1.0-SNAPSHOT/injection-1.0-SNAPSHOT.jar",
|
||||
"sha256": "45ef4ce24a23164faa42bd3568015be30808f87328fa4ef2ec8cc57ba1eb027d"
|
||||
"sha256": "2d72111068cb8240b31e70c42c60687316dfbaf60d2fd965dcc833eeae17b084"
|
||||
},
|
||||
{
|
||||
"groupId": "de.neitzel.lib",
|
||||
@@ -83,7 +82,7 @@
|
||||
"version": "1.0-SNAPSHOT",
|
||||
"extension": "jar",
|
||||
"repositoryPath": "de/neitzel/lib/fx/1.0-SNAPSHOT/fx-1.0-SNAPSHOT.jar",
|
||||
"sha256": "cc0cbde64cc09e1b0711727752e7965442044330d976eae054e14237456a8f40"
|
||||
"sha256": "803b19f76039c8777809618f420f43d2ff46a9fe051e96317fb053f8afb49ef0"
|
||||
}
|
||||
],
|
||||
"generatedViewModelSupport": "stored-property-access-and-declarative-service-registry"
|
||||
|
||||
@@ -14,28 +14,32 @@ python3 scripts/check-neitzellib-artifact.py --repository /path/to/repository
|
||||
|
||||
This check detects an absent or overwritten snapshot. Maven coordinates alone are insufficient. Artifact bytes have also been compared against every tested compiled class in the isolated build. A fresh rebuild can change JAR timestamps, so it must be validated and its manifest deliberately refreshed; a checksum mismatch must not be automatically accepted.
|
||||
|
||||
## Evidence
|
||||
## Original Java 21 qualification
|
||||
|
||||
- Unmodified library main plus the new regression fixture: seven tests, one expected loading error in `componentAttributesApplyAfterInitialization`. Maven reported success because its POM hardcodes `testFailureIgnore=true`; the XML result correctly identified the failure.
|
||||
- Corrected isolated main-based build: core **1**, injection **10**, fx **101** tests, all passing with zero failures, errors or skips. The Component test class contains seven passing cases.
|
||||
- Adapter-free Kit canvas/runtime smoke scenario: **38 passing checks**, including direct loading of the saved original FXML. It used JavaFX 21.0.7 in the target and the existing Kit 26 prototype host.
|
||||
- `clean install` completed using JDK 21 and the library's Maven 3.9.11 wrapper, including its configured report-generation/package phases. Test report totals, not the Maven exit status alone, are the test acceptance evidence. This does not claim new module-path, plugin or cross-platform qualification.
|
||||
|
||||
## Rebuild from clean source
|
||||
## Rebuild the active baseline
|
||||
|
||||
Use a clean checkout at the manifest's source revision; the canonical library checkout currently also contains unrelated native-desktop work. Keep that work separate. Run:
|
||||
|
||||
```sh
|
||||
# In the clean NeitzelLib checkout, with JAVA_HOME pointing to JDK 21:
|
||||
./mvnw -B -ntp -pl fx -am -Dversions.skip=true -Dmaven.test.failure.ignore=false clean install
|
||||
# In the clean NeitzelLib checkout, with JAVA_HOME pointing to JDK 25:
|
||||
./mvnw -B -ntp -pl fx -am -Dversions.skip=true clean install
|
||||
```
|
||||
|
||||
The command-line failure-ignore property does not override the existing hardcoded POM setting. Inspect every `TEST-*.xml` report under `core`, `injection` and `fx`: require nonempty reports and zero failures/errors/skips before accepting the install. Re-run the direct adapter-free scenario before changing the recorded capability baseline. Record source revision and installed artifact hashes together after acceptance; do not silently reuse the old hashes for a new build.
|
||||
Surefire fails the current build on test failures. Inspect the XML reports under `core`, `injection` and `fx` and record any platform-specific skips. Re-run the direct adapter-free scenario before changing the recorded capability baseline. Record source revision and installed artifact hashes together after acceptance; do not silently reuse the old hashes for a new build.
|
||||
|
||||
The regression source covers custom/inherited properties, numeric/boolean/enum conversion, XML text escaping, attached layout constraints, post-initialization setters, shared Model identity/write-back and invalid values. The original canonical library branch and its working-tree changes were left untouched; only the isolated eight-file Component change was integrated into main.
|
||||
|
||||
## Generated ViewModel runtime extension — 2026-11-13
|
||||
|
||||
The active development snapshot now includes NeitzelLib `90e08b7`: [stored-property access and generated defaults](https://gitea.neitzel.de/konrad/NeitzelLib/src/commit/90e08b7/fx/docs/generated-viewmodels.md). The earlier Component baseline above remains historical qualification. The new isolated clean build passed core 1, injection 10 and fx 105 tests with no failures/errors/skips. Every installed class was compared with the tested class output before updating the manifest hashes. The canonical library checkout and its unrelated changes remain untouched. No released minimum or remote artifact publication is claimed.
|
||||
The Java 21 development snapshot included NeitzelLib `90e08b7`: [stored-property access and generated defaults](https://gitea.neitzel.de/konrad/NeitzelLib/src/commit/90e08b7/fx/docs/generated-viewmodels.md). The earlier Component baseline above remains historical qualification. The new isolated clean build passed core 1, injection 10 and fx 105 tests with no failures/errors/skips. Every installed class was compared with the tested class output before updating the manifest hashes. The canonical library checkout and its unrelated changes remain untouched. No released minimum or remote artifact publication is claimed.
|
||||
|
||||
Designer fixtures additionally verify generated runtime behavior in real classpath and module-path applications. The library build evidence is `/tmp/viewmodel-runtime-qualified.log`; generated fixture evidence is `/tmp/generated-vm-fixtures-final.log`. The prior 38 adapter-free checks remain historical; current whole-host qualification is recorded with the generated ViewModel slice.
|
||||
|
||||
## Java 25 runtime baseline
|
||||
|
||||
The active manifest pins the Java 25 / JavaFX 27.0.1 NeitzelLib build. To qualify it in an isolated Maven repository, set `NEITZELLIB_MAVEN_REPOSITORY` to that repository and set `MAVEN_OPTS=-Dmaven.repo.local=$NEITZELLIB_MAVEN_REPOSITORY` for the build. The manifest records the exact source revision, Surefire totals and artifact hashes. The core totals include a separate run with `-Ddesktop.native.tests=true`.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -4,8 +4,10 @@
|
||||
"fixture": {
|
||||
"applicationModule": "app",
|
||||
"launchMode": "classpath",
|
||||
"buildRuntime": "java21",
|
||||
"targetRuntime": "java21",
|
||||
"buildRuntime": "java25",
|
||||
"targetRuntime": "java25",
|
||||
"buildJava": 25,
|
||||
"targetJava": 25,
|
||||
"preview": {
|
||||
"sourceSet": "test",
|
||||
"provider": "fixture.preview.Examples",
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<module>app</module>
|
||||
</modules>
|
||||
<properties>
|
||||
<maven.compiler.release>21</maven.compiler.release>
|
||||
<maven.compiler.release>25</maven.compiler.release>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
<build>
|
||||
@@ -18,22 +18,22 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.14.1</version>
|
||||
<version>3.16.0</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.3.1</version>
|
||||
<version>3.5.0</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>3.5.4</version>
|
||||
<version>3.6.1</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>3.4.2</version>
|
||||
<version>3.5.1</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
|
||||
@@ -4,8 +4,10 @@
|
||||
"fixture": {
|
||||
"applicationModule": "app",
|
||||
"launchMode": "module-path",
|
||||
"buildRuntime": "java21",
|
||||
"targetRuntime": "java21",
|
||||
"buildRuntime": "java25",
|
||||
"targetRuntime": "java25",
|
||||
"buildJava": 25,
|
||||
"targetJava": 25,
|
||||
"preview": {
|
||||
"sourceSet": "module",
|
||||
"module": "preview",
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<module>checks</module>
|
||||
</modules>
|
||||
<properties>
|
||||
<maven.compiler.release>21</maven.compiler.release>
|
||||
<maven.compiler.release>25</maven.compiler.release>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
<build>
|
||||
@@ -20,22 +20,22 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.14.1</version>
|
||||
<version>3.16.0</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.3.1</version>
|
||||
<version>3.5.0</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>3.5.4</version>
|
||||
<version>3.6.1</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>3.4.2</version>
|
||||
<version>3.5.1</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.test.failure.ignore>false</maven.test.failure.ignore>
|
||||
<lombok.version>1.18.42</lombok.version>
|
||||
<lombok.version>1.18.48</lombok.version>
|
||||
</properties>
|
||||
<scm>
|
||||
<connection>scm:git:ssh://git@gitea.neitzel.de:2222/konrad/NeitzelFXDesigner.git</connection>
|
||||
@@ -27,24 +27,24 @@
|
||||
<tag>HEAD</tag>
|
||||
</scm>
|
||||
<dependencyManagement><dependencies>
|
||||
<dependency><groupId>org.junit.jupiter</groupId><artifactId>junit-jupiter</artifactId><version>5.12.2</version><scope>test</scope></dependency>
|
||||
<dependency><groupId>org.junit.jupiter</groupId><artifactId>junit-jupiter</artifactId><version>6.1.3</version><scope>test</scope></dependency>
|
||||
</dependencies></dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId><version>${lombok.version}</version><scope>provided</scope></dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<pluginManagement><plugins>
|
||||
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.14.1</version><configuration><release>${module.java.release}</release><annotationProcessorPaths><path><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId><version>${lombok.version}</version></path></annotationProcessorPaths></configuration></plugin>
|
||||
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId><version>3.5.4</version><configuration><testFailureIgnore>false</testFailureIgnore></configuration></plugin>
|
||||
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-resources-plugin</artifactId><version>3.3.1</version></plugin>
|
||||
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-jar-plugin</artifactId><version>3.4.2</version></plugin>
|
||||
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-install-plugin</artifactId><version>3.1.2</version></plugin>
|
||||
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.16.0</version><configuration><release>${module.java.release}</release><annotationProcessorPaths><path><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId><version>${lombok.version}</version></path></annotationProcessorPaths></configuration></plugin>
|
||||
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId><version>3.6.1</version><configuration><testFailureIgnore>false</testFailureIgnore></configuration></plugin>
|
||||
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-resources-plugin</artifactId><version>3.5.0</version></plugin>
|
||||
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-jar-plugin</artifactId><version>3.5.1</version></plugin>
|
||||
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-install-plugin</artifactId><version>3.2.0</version></plugin>
|
||||
</plugins></pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<version>3.6.2</version>
|
||||
<version>3.7.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>bootstrap-toolchain</id>
|
||||
@@ -61,7 +61,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-clean-plugin</artifactId>
|
||||
<version>3.4.1</version>
|
||||
<version>3.5.0</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
@@ -26,7 +26,7 @@ run([wrapper, "-B", "-ntp", "clean", "install"])
|
||||
run([wrapper, "-B", "-ntp", "-pl", "designer-target-tools", "org.apache.maven.plugins:maven-dependency-plugin:3.6.1:build-classpath", "-DincludeScope=runtime", "-Dmdep.outputFile=target/runtime-classpath.txt"])
|
||||
for module in ("contracts", "model-processor", "preview-api", "core", "kit-ui", "standalone", "target-tools", "maven-plugin"):
|
||||
name = "designer-" + module
|
||||
expected = 69 if module in ("kit-ui", "standalone") else 65
|
||||
expected = 69
|
||||
with zipfile.ZipFile(ROOT / name / "target" / (name + "-0.1.0-SNAPSHOT.jar")) as jar:
|
||||
classes = [n for n in jar.namelist() if n.endswith(".class")]
|
||||
assert classes, name
|
||||
@@ -34,8 +34,8 @@ for module in ("contracts", "model-processor", "preview-api", "core", "kit-ui",
|
||||
classpath = str(ROOT / "designer-target-tools/target/classes") + os.pathsep + (ROOT / "designer-target-tools/target/runtime-classpath.txt").read_text().strip()
|
||||
target_java = Path(args.target_java_home) / "bin/java"
|
||||
version = subprocess.run([str(target_java), "-version"], capture_output=True, text=True, check=True)
|
||||
if not re.search(r'version "21[.\"]', version.stderr):
|
||||
sys.exit("Target linkage gate requires Java 21")
|
||||
if not re.search(r'version "25[.\"]', version.stderr):
|
||||
sys.exit("Target linkage gate requires Java 25")
|
||||
run([target_java, "-cp", classpath, "de.neitzel.fxdesigner.target.TargetToolInfo"])
|
||||
run([sys.executable, ROOT / "scripts/check-preview-fixtures.py", "--target-java-home", args.target_java_home])
|
||||
run([wrapper, "-B", "-ntp", "-pl", "designer-standalone", "org.apache.maven.plugins:maven-dependency-plugin:3.6.1:build-classpath", "-DincludeScope=test", "-Dmdep.outputFile=target/smoke-classpath.txt"])
|
||||
|
||||
@@ -47,7 +47,7 @@ with tempfile.TemporaryDirectory(prefix="designer-connected-") as temporary:
|
||||
"de.neitzel.fxdesigner.standalone.WorkerLifecycleSmoke", ROOT, fixture])
|
||||
crashes.check()
|
||||
local = fixture / ".neitzel-fx-designer"
|
||||
(local / "runtimes.json").write_text(json.dumps({"schemaVersion":"1.0","runtimes":{"java21":{"build":args.target_java_home,"target":args.target_java_home}}}))
|
||||
(local / "runtimes.json").write_text(json.dumps({"schemaVersion":"1.0","runtimes":{"java25":{"build":args.target_java_home,"target":args.target_java_home}}}))
|
||||
tools = [ROOT / ("designer-" + name) / "target" / ("designer-" + name + "-0.1.0-SNAPSHOT.jar") for name in ("target-tools","contracts","preview-api")]
|
||||
(local / "host.properties").write_text("configuration=../neitzel-fx-designer.json\ncontext=fixture\nsettings=runtimes.json\nmaven="+str(ROOT/"mvnw")+"\ntools="+os.pathsep.join(map(str,tools))+"\n")
|
||||
run("native-kit-" + mode, [Path(os.environ["JAVA_HOME"]) / "bin/java", "--enable-native-access=ALL-UNNAMED", "-cp", classpath,
|
||||
|
||||
@@ -30,7 +30,7 @@ shutil.copytree(args.app, app, symlinks=True)
|
||||
local = library / ".neitzel-fx-designer"
|
||||
local.mkdir()
|
||||
settings = local / "runtimes.json"
|
||||
settings.write_text(json.dumps({"schemaVersion": "1.0", "runtimes": {"java21": {
|
||||
settings.write_text(json.dumps({"schemaVersion": "1.0", "runtimes": {"java25": {
|
||||
"build": str(args.target_java_home.resolve()),
|
||||
"target": str(args.target_java_home.resolve())}}}))
|
||||
classes = output / "agent-classes"
|
||||
|
||||
@@ -3,12 +3,13 @@
|
||||
import argparse
|
||||
import hashlib
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
||||
ROOT = Path(__file__).resolve().parent.parent
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("--repository", type=Path, default=Path.home() / ".m2/repository")
|
||||
parser.add_argument("--repository", type=Path, default=Path(os.environ.get("NEITZELLIB_MAVEN_REPOSITORY", Path.home() / ".m2/repository")))
|
||||
args = parser.parse_args()
|
||||
manifest = json.loads((ROOT / "docs/runtime/neitzellib-baseline.json").read_text())
|
||||
errors = []
|
||||
|
||||
@@ -52,7 +52,7 @@ for mode in (('classpath','modulepath','invalid-configuration','missing-runtime'
|
||||
document=fixture/'app/src/main/resources/fixture/components/Person.fxml'
|
||||
if mode=='missing-runtime':
|
||||
settings=fixture/'.neitzel-fx-designer/runtimes.json'
|
||||
values=json.loads(settings.read_text());values['runtimes']['java21']['build']='/missing/build-jdk'
|
||||
values=json.loads(settings.read_text());values['runtimes']['java25']['build']='/missing/build-jdk'
|
||||
settings.write_text(json.dumps(values))
|
||||
# Only target runtime settings and Maven come from the project; worker tools come from the app.
|
||||
config=fixture/'neitzel-fx-designer.json'
|
||||
|
||||
@@ -32,7 +32,7 @@ if settings.exists() or launch.exists():
|
||||
local.mkdir(exist_ok=True)
|
||||
with settings.open("x") as file:
|
||||
json.dump({"schemaVersion": "1.0", "runtimes": {
|
||||
"java21": {"build": str(java), "target": str(java)}}}, file, indent=2)
|
||||
"java25": {"build": str(java), "target": str(java)}}}, file, indent=2)
|
||||
|
||||
|
||||
def prop(value):
|
||||
|
||||
@@ -15,7 +15,7 @@ shutil.copytree(ROOT / "integration-fixtures/preview" / args.mode, destination,
|
||||
ignore=shutil.ignore_patterns("target"))
|
||||
local = destination / ".neitzel-fx-designer"
|
||||
local.mkdir()
|
||||
(local / "runtimes.json").write_text(json.dumps({"schemaVersion":"1.0","runtimes":{"java21":{"build":str(args.target_java_home.resolve()),"target":str(args.target_java_home.resolve())}}}))
|
||||
(local / "runtimes.json").write_text(json.dumps({"schemaVersion":"1.0","runtimes":{"java25":{"build":str(args.target_java_home.resolve()),"target":str(args.target_java_home.resolve())}}}))
|
||||
tools = [ROOT / ("designer-" + name) / "target" / ("designer-" + name + "-0.1.0-SNAPSHOT.jar")
|
||||
for name in ("target-tools","contracts","preview-api")]
|
||||
# Properties separators in values do not need escaping; double backslashes do.
|
||||
|
||||
Reference in New Issue
Block a user