Set Neitzel FX Designer version to 0.1.0
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<parent>
|
||||
<groupId>de.neitzel.fxdesigner</groupId>
|
||||
<artifactId>neitzel-fx-designer</artifactId>
|
||||
<version>0.1.0-SNAPSHOT</version>
|
||||
<version>0.1.0</version>
|
||||
</parent>
|
||||
<artifactId>designer-contracts</artifactId>
|
||||
<properties>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<parent>
|
||||
<groupId>de.neitzel.fxdesigner</groupId>
|
||||
<artifactId>neitzel-fx-designer</artifactId>
|
||||
<version>0.1.0-SNAPSHOT</version>
|
||||
<version>0.1.0</version>
|
||||
</parent>
|
||||
<artifactId>designer-core</artifactId>
|
||||
<properties>
|
||||
|
||||
@@ -345,11 +345,11 @@ public final class BuildRefresh implements AutoCloseable {
|
||||
List.of(
|
||||
"-DskipTests=true",
|
||||
"-Dmaven.test.skip=false",
|
||||
"de.neitzel.fxdesigner:designer-maven-plugin:0.1.0-SNAPSHOT:plan",
|
||||
"de.neitzel.fxdesigner:designer-maven-plugin:0.1.0:plan",
|
||||
"clean",
|
||||
"de.neitzel.fxdesigner:designer-maven-plugin:0.1.0-SNAPSHOT:dependencies",
|
||||
"de.neitzel.fxdesigner:designer-maven-plugin:0.1.0:dependencies",
|
||||
"package",
|
||||
"de.neitzel.fxdesigner:designer-maven-plugin:0.1.0-SNAPSHOT:capture",
|
||||
"de.neitzel.fxdesigner:designer-maven-plugin:0.1.0:capture",
|
||||
"-Ddesigner.captureDir=" + metadata));
|
||||
return List.copyOf(command);
|
||||
}
|
||||
|
||||
+3
-3
@@ -22,9 +22,9 @@ public final class ConnectedWorkflowContract {
|
||||
public int run(HostServices host, Path root, Path fixture) throws Exception {
|
||||
var tools =
|
||||
List.of(
|
||||
root.resolve("designer-target-tools/target/designer-target-tools-0.1.0-SNAPSHOT.jar"),
|
||||
root.resolve("designer-contracts/target/designer-contracts-0.1.0-SNAPSHOT.jar"),
|
||||
root.resolve("designer-preview-api/target/designer-preview-api-0.1.0-SNAPSHOT.jar"));
|
||||
root.resolve("designer-target-tools/target/designer-target-tools-0.1.0.jar"),
|
||||
root.resolve("designer-contracts/target/designer-contracts-0.1.0.jar"),
|
||||
root.resolve("designer-preview-api/target/designer-preview-api-0.1.0.jar"));
|
||||
var workflow =
|
||||
new DesignerWorkflow(
|
||||
host,
|
||||
|
||||
@@ -4,7 +4,7 @@ plugins {
|
||||
id("org.jetbrains.intellij.platform") version "2.20.1"
|
||||
}
|
||||
group = "de.neitzel.fxdesigner"
|
||||
version = "0.1.0-SNAPSHOT"
|
||||
version = "0.1.0"
|
||||
repositories {
|
||||
mavenLocal { content { includeGroup("de.neitzel.fxdesigner") } }
|
||||
mavenCentral()
|
||||
@@ -20,7 +20,7 @@ dependencies {
|
||||
annotationProcessor(lombok)
|
||||
testCompileOnly(lombok)
|
||||
testAnnotationProcessor(lombok)
|
||||
implementation("de.neitzel.fxdesigner:designer-kit-ui:0.1.0-SNAPSHOT")
|
||||
implementation("de.neitzel.fxdesigner:designer-kit-ui:0.1.0")
|
||||
intellijPlatform {
|
||||
local(providers.gradleProperty("ideaHome").orElse(providers.environmentVariable("IDEA_HOME")))
|
||||
testFramework(TestFrameworkType.Platform)
|
||||
@@ -31,7 +31,7 @@ dependencies {
|
||||
implementation("org.openjfx:javafx-$it:26:$fxPlatform")
|
||||
}
|
||||
testImplementation("junit:junit:4.13.2")
|
||||
testImplementation("de.neitzel.fxdesigner:designer-core:0.1.0-SNAPSHOT:tests")
|
||||
testImplementation("de.neitzel.fxdesigner:designer-core:0.1.0:tests")
|
||||
}
|
||||
intellijPlatform {
|
||||
pluginConfiguration {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<parent>
|
||||
<groupId>de.neitzel.fxdesigner</groupId>
|
||||
<artifactId>neitzel-fx-designer</artifactId>
|
||||
<version>0.1.0-SNAPSHOT</version>
|
||||
<version>0.1.0</version>
|
||||
</parent>
|
||||
<artifactId>designer-kit-ui</artifactId>
|
||||
<properties>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<parent>
|
||||
<groupId>de.neitzel.fxdesigner</groupId>
|
||||
<artifactId>neitzel-fx-designer</artifactId>
|
||||
<version>0.1.0-SNAPSHOT</version>
|
||||
<version>0.1.0</version>
|
||||
</parent>
|
||||
<artifactId>designer-maven-plugin</artifactId>
|
||||
<packaging>maven-plugin</packaging>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent><groupId>de.neitzel.fxdesigner</groupId><artifactId>neitzel-fx-designer</artifactId><version>0.1.0-SNAPSHOT</version></parent>
|
||||
<parent><groupId>de.neitzel.fxdesigner</groupId><artifactId>neitzel-fx-designer</artifactId><version>0.1.0</version></parent>
|
||||
<artifactId>designer-model-processor</artifactId>
|
||||
<properties><module.java.release>25</module.java.release></properties>
|
||||
<dependencies>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<parent>
|
||||
<groupId>de.neitzel.fxdesigner</groupId>
|
||||
<artifactId>neitzel-fx-designer</artifactId>
|
||||
<version>0.1.0-SNAPSHOT</version>
|
||||
<version>0.1.0</version>
|
||||
</parent>
|
||||
<artifactId>designer-preview-api</artifactId>
|
||||
<properties>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<parent>
|
||||
<groupId>de.neitzel.fxdesigner</groupId>
|
||||
<artifactId>neitzel-fx-designer</artifactId>
|
||||
<version>0.1.0-SNAPSHOT</version>
|
||||
<version>0.1.0</version>
|
||||
</parent>
|
||||
<artifactId>designer-standalone</artifactId>
|
||||
<properties>
|
||||
|
||||
@@ -9,7 +9,7 @@ public final class Launcher {
|
||||
}
|
||||
if (args.length == 1 && args[0].equals("--version")) {
|
||||
System.out.println(
|
||||
"Neitzel FX Designer 0.1.0-SNAPSHOT; Java "
|
||||
"Neitzel FX Designer 0.1.0; Java "
|
||||
+ System.getProperty("java.version")
|
||||
+ "; runtime "
|
||||
+ System.getProperty("java.home"));
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ public final class WorkerLifecycleSmoke {
|
||||
List.of("target-tools", "contracts", "preview-api").stream()
|
||||
.map(
|
||||
n ->
|
||||
root.resolve("designer-" + n + "/target/designer-" + n + "-0.1.0-SNAPSHOT.jar"))
|
||||
root.resolve("designer-" + n + "/target/designer-" + n + "-0.1.0.jar"))
|
||||
.toList();
|
||||
for (int i = 0; i < count; i++) {
|
||||
var output = new StringBuffer();
|
||||
|
||||
+3
-3
@@ -15,9 +15,9 @@ public final class WorkerOwnerProbe {
|
||||
new DraftOverlay(store.lease(store.state("fixture").lastSuccessful()), List.of()))) {
|
||||
worker.start(
|
||||
List.of(
|
||||
root.resolve("designer-target-tools/target/designer-target-tools-0.1.0-SNAPSHOT.jar"),
|
||||
root.resolve("designer-contracts/target/designer-contracts-0.1.0-SNAPSHOT.jar"),
|
||||
root.resolve("designer-preview-api/target/designer-preview-api-0.1.0-SNAPSHOT.jar")),
|
||||
root.resolve("designer-target-tools/target/designer-target-tools-0.1.0.jar"),
|
||||
root.resolve("designer-contracts/target/designer-contracts-0.1.0.jar"),
|
||||
root.resolve("designer-preview-api/target/designer-preview-api-0.1.0.jar")),
|
||||
s -> {});
|
||||
Files.writeString(pid, Long.toString(worker.pid()));
|
||||
Thread.sleep(60000);
|
||||
|
||||
+3
-3
@@ -32,9 +32,9 @@ public final class WorkflowSmoke {
|
||||
new HostServices.RuntimeInstallation(java, 25)));
|
||||
var tools =
|
||||
List.of(
|
||||
root.resolve("designer-target-tools/target/designer-target-tools-0.1.0-SNAPSHOT.jar"),
|
||||
root.resolve("designer-contracts/target/designer-contracts-0.1.0-SNAPSHOT.jar"),
|
||||
root.resolve("designer-preview-api/target/designer-preview-api-0.1.0-SNAPSHOT.jar"));
|
||||
root.resolve("designer-target-tools/target/designer-target-tools-0.1.0.jar"),
|
||||
root.resolve("designer-contracts/target/designer-contracts-0.1.0.jar"),
|
||||
root.resolve("designer-preview-api/target/designer-preview-api-0.1.0.jar"));
|
||||
try (var host =
|
||||
new StandaloneHost(
|
||||
runtimes,
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<parent>
|
||||
<groupId>de.neitzel.fxdesigner</groupId>
|
||||
<artifactId>neitzel-fx-designer</artifactId>
|
||||
<version>0.1.0-SNAPSHOT</version>
|
||||
<version>0.1.0</version>
|
||||
</parent>
|
||||
<artifactId>designer-target-tools</artifactId>
|
||||
<properties>
|
||||
@@ -25,6 +25,8 @@
|
||||
<groupId>de.neitzel.lib</groupId>
|
||||
<artifactId>fx</artifactId>
|
||||
<version>${neitzellib.version}</version>
|
||||
<!-- The target application's captured classpath supplies NeitzelLib. -->
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
|
||||
@@ -12,7 +12,7 @@ Configure the application module's Maven compiler plugin (3.14.1 in the qualifie
|
||||
<path>
|
||||
<groupId>de.neitzel.fxdesigner</groupId>
|
||||
<artifactId>designer-model-processor</artifactId>
|
||||
<version>0.1.0-SNAPSHOT</version>
|
||||
<version>0.1.0</version>
|
||||
</path>
|
||||
</annotationProcessorPaths>
|
||||
<compilerArgs>
|
||||
|
||||
@@ -30,11 +30,11 @@ This slice is command-line launched. Finder project selection, file associations
|
||||
|
||||
## Package boundaries and provenance
|
||||
|
||||
The launcher manifest orders the patched shared Kit classes before upstream Kit. Production JARs retain their embedded license/notice resources, the app includes `THIRD-PARTY-NOTICES.md`, and the linked JDK retains its legal files. The package inventory records the source commit and dirty-tree flag, JDK release metadata, architecture and every bundled file hash. It identifies a development artifact, not a published release or a reproducible-build claim.
|
||||
The launcher manifest orders the patched shared Kit classes before upstream Kit. Production JARs retain their embedded license/notice resources, the app includes `THIRD-PARTY-NOTICES.md`, and the linked JDK retains its legal files. The package inventory records the source commit and dirty-tree flag, JDK release metadata, architecture and every bundled file hash. It identifies the source and contents of the packaged build.
|
||||
|
||||
`jpackage` adds nested input JARs to its generated host classpath. Worker tools are therefore copied to `Contents/app/tools` after launcher creation; an assembly assertion rejects leaked tool paths. The host package includes no IntelliJ SDK, target application library or test JARs. Target tools, contracts and preview API are supplied separately to the target JVM, which resolves application dependencies from the immutable build snapshot.
|
||||
|
||||
The application version remains `0.1.0-SNAPSHOT`. The macOS bundle uses numeric version `1.0` because this JDK's `jpackage` rejects a zero leading version component; that bundle value is not a product 1.0 release. The archive is a local development distribution, without Developer ID signing or notarization. Public distribution still needs the product license decision, release/provenance review and separately published project-facing tools/runtime artifacts. Application building still requires its configured JDK, Maven and dependency access; bundling the designer does not make builds offline.
|
||||
The application reports version `0.1.0`. The macOS bundle uses numeric version `1.0` because this JDK's `jpackage` rejects a zero leading version component. The archive has no Developer ID signature or notarization. Application building still requires its configured JDK, Maven and dependency access; bundling the designer does not make builds offline.
|
||||
|
||||
## Automated qualification
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ Start with the German contact-book guide or use the [Person desk quick start](qu
|
||||
|
||||
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.
|
||||
The Designer tooling uses version `0.1.0`. Install the Maven modules locally or configure the [Gitea Maven registry](https://gitea.neitzel.de/api/packages/konrad/maven) as both a dependency and plugin repository. The target applications and examples use the separately installed [NeitzelLib `1.0.6-SNAPSHOT` baseline](../runtime/neitzellib-baseline.md).
|
||||
|
||||
## Scope and conventions
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ These are three separate operations: describe existing Java Models at compile ti
|
||||
|
||||
## Compile-time Model descriptions
|
||||
|
||||
Add `de.neitzel.fxdesigner:designer-model-processor:0.1.0-SNAPSHOT` to Maven compiler `annotationProcessorPaths`, preserving existing processors such as Lombok. Enable annotation processing and select Models with:
|
||||
Add `de.neitzel.fxdesigner:designer-model-processor:0.1.0` to Maven compiler `annotationProcessorPaths`, preserving existing processors such as Lombok. Enable annotation processing and select Models with:
|
||||
|
||||
```xml
|
||||
<compilerArgs>
|
||||
|
||||
@@ -22,7 +22,7 @@ mvn -B -ntp javafx:run
|
||||
|
||||
## 2. Dieselbe FXML im Neitzel Designer öffnen
|
||||
|
||||
Für die Vorschau kommen die Designer-Werkzeuge `0.1.0-SNAPSHOT`, das lokale Plugin und ein **IntelliJ SDK 263.7307.200 auf macOS** hinzu. Der Host nutzt JavaFX/Kit 26; das Ziel verwendet weiterhin JavaFX 27.0.1. Folge der [Plugin-Installation und lokalen Konfiguration](kontakt-tutorial.md#4-das-projekt-mit-dem-designer-verbinden), inklusive `embed.scene.builder=false`. Nutzt du ein separates Maven-Repository, brauchen App-Build, Designer-Build und der in IntelliJ gestartete Prozess dessen Pfad.
|
||||
Für die Vorschau kommen die Designer-Werkzeuge `0.1.0`, das lokale Plugin und ein **IntelliJ SDK 263.7307.200 auf macOS** hinzu. Der Host nutzt JavaFX/Kit 26; das Ziel verwendet weiterhin JavaFX 27.0.1. Folge der [Plugin-Installation und lokalen Konfiguration](kontakt-tutorial.md#4-das-projekt-mit-dem-designer-verbinden), inklusive `embed.scene.builder=false`. Nutzt du ein separates Maven-Repository, brauchen App-Build, Designer-Build und der in IntelliJ gestartete Prozess dessen Pfad.
|
||||
|
||||
1. Öffne `src/main/resources/de/neitzel/contactbook/view/ContactBook.fxml`. Wähle den Editor **Neitzel Designer** und darin **Build and Refresh**. Warte auf den erfolgreichen Build; der gewöhnliche IntelliJ-Build genügt nicht.
|
||||
2. Wähle **Kontaktverwaltung · Beispieldaten** und **Interactive preview**. Anders als die unbefüllte App zeigt das Vorschaufenster `Ada Lovelace` und `Grace Hopper`. Ziehe das Fenster bei Bedarf breiter und höher, damit Schaltflächen und Detailfelder vollständig sichtbar sind. Wähle Ada und probiere die beiden Listen. Tippe einen neuen Namen, klicke **Speichern**, ändere ihn erneut und klicke **Laden**: Nur der Vorschau-Snapshot wird geladen.
|
||||
|
||||
@@ -14,7 +14,7 @@ Die überprüfte Ausgangskombination für dieses Beispiel ist:
|
||||
| Maven | 3.9.11 oder neuer |
|
||||
| JavaFX der Anwendung | 27.0.1 |
|
||||
| NeitzelLib FX | `1.0.6-SNAPSHOT`, lokal gebautes Entwicklungsartefakt |
|
||||
| IntelliJ-Plugin | NeitzelFXDesigner `0.1.0-SNAPSHOT`, lokal gebaut |
|
||||
| IntelliJ-Plugin | NeitzelFXDesigner `0.1.0`, lokal gebaut |
|
||||
| IntelliJ-Host | SDK `263.7307.200` auf macOS; JavaFX/Scene Builder Kit 26 im Host |
|
||||
|
||||
Die JDK-/JavaFX-Version der Anwendung ist unabhängig vom JavaFX-Toolkit des IntelliJ-Prozesses. Anwendungs- und Vorschau-Code läuft im Zielprozess. Diese Kombination ist eine Entwicklungsbaseline, kein veröffentlichtes Release oder eine Zusage für andere IDE- und Betriebssystemversionen. Die zugehörigen Quellstände und Artefaktgrenzen stehen in der [NeitzelLib-Baseline](../runtime/neitzellib-baseline.md).
|
||||
|
||||
@@ -67,7 +67,7 @@ The [local settings schema](../../designer-contracts/src/main/resources/schema/l
|
||||
|
||||
## Typed sample providers
|
||||
|
||||
Add `de.neitzel.fxdesigner:designer-preview-api:0.1.0-SNAPSHOT` with test scope, preferably in an opt-in profile. A provider implements `PreviewProvider<Model, ApplicationContext>`; its public no-argument constructor and `open(exampleId)` execute only in the target JVM, after selection. `modelType()` declares the Model contract.
|
||||
Add `de.neitzel.fxdesigner:designer-preview-api:0.1.0` with test scope, preferably in an opt-in profile. A provider implements `PreviewProvider<Model, ApplicationContext>`; its public no-argument constructor and `open(exampleId)` execute only in the target JVM, after selection. `modelType()` declares the Model contract.
|
||||
|
||||
The following is an illustrative fragment: `Person`, `MyApplication` and `createSamplePerson()` belong to your application. Import `PreviewProvider` and `PreviewSession` from `de.neitzel.fxdesigner.preview` and `ApplicationContext` from `de.neitzel.injection`. The complete compiling providers are in NeitzelLib’s `fx-example/src/designer/java/de/neitzel/fx/example/preview`.
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<maven.compiler.release>25</maven.compiler.release>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
||||
<designer.version>0.1.0-SNAPSHOT</designer.version>
|
||||
<designer.version>0.1.0</designer.version>
|
||||
<javafx.version>27.0.1</javafx.version>
|
||||
<junit.version>6.1.3</junit.version>
|
||||
<jackson.version>2.20.1</jackson.version>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
||||
<!-- Dependency versions -->
|
||||
<designer.version>0.1.0-SNAPSHOT</designer.version>
|
||||
<designer.version>0.1.0</designer.version>
|
||||
<neitzellib.version>1.0.6-SNAPSHOT</neitzellib.version>
|
||||
|
||||
<!-- Plugin versions -->
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
||||
<!-- Dependency versions -->
|
||||
<designer.version>0.1.0-SNAPSHOT</designer.version>
|
||||
<designer.version>0.1.0</designer.version>
|
||||
<neitzellib.version>1.0.6-SNAPSHOT</neitzellib.version>
|
||||
|
||||
<!-- Plugin versions -->
|
||||
|
||||
@@ -5,13 +5,19 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>de.neitzel.fxdesigner</groupId>
|
||||
<artifactId>neitzel-fx-designer</artifactId>
|
||||
<version>0.1.0-SNAPSHOT</version>
|
||||
<version>0.1.0</version>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>designer-contracts</module><module>designer-model-processor</module><module>designer-preview-api</module>
|
||||
<module>designer-core</module><module>designer-kit-ui</module>
|
||||
<module>designer-standalone</module><module>designer-target-tools</module><module>designer-maven-plugin</module>
|
||||
</modules>
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>gitea-neitzelfxdesigner</id>
|
||||
<url>https://gitea.neitzel.de/api/packages/konrad/maven</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
<name>Neitzel FX Designer</name>
|
||||
<description>Repository foundation for the shared Kit designer and its standalone and IntelliJ hosts.</description>
|
||||
<url>https://gitea.neitzel.de/konrad/NeitzelFXDesigner</url>
|
||||
@@ -27,6 +33,7 @@
|
||||
<!-- Plugin versions -->
|
||||
<maven.clean.plugin>3.5.0</maven.clean.plugin>
|
||||
<maven.compiler.plugin>3.16.0</maven.compiler.plugin>
|
||||
<maven.deploy.plugin>3.2.0</maven.deploy.plugin>
|
||||
<maven.enforcer.plugin>3.7.0</maven.enforcer.plugin>
|
||||
<maven.install.plugin>3.2.0</maven.install.plugin>
|
||||
<maven.jar.plugin>3.5.1</maven.jar.plugin>
|
||||
@@ -37,7 +44,7 @@
|
||||
<connection>scm:git:ssh://git@gitea.neitzel.de:2222/konrad/NeitzelFXDesigner.git</connection>
|
||||
<developerConnection>scm:git:ssh://git@gitea.neitzel.de:2222/konrad/NeitzelFXDesigner.git</developerConnection>
|
||||
<url>https://gitea.neitzel.de/konrad/NeitzelFXDesigner</url>
|
||||
<tag>HEAD</tag>
|
||||
<tag>v0.1.0</tag>
|
||||
</scm>
|
||||
<dependencyManagement><dependencies>
|
||||
<dependency><groupId>org.junit.jupiter</groupId><artifactId>junit-jupiter</artifactId><version>${junit.version}</version><scope>test</scope></dependency>
|
||||
@@ -51,6 +58,7 @@
|
||||
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId><version>${maven.surefire.plugin}</version><configuration><testFailureIgnore>false</testFailureIgnore></configuration></plugin>
|
||||
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-resources-plugin</artifactId><version>${maven.resources.plugin}</version></plugin>
|
||||
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-jar-plugin</artifactId><version>${maven.jar.plugin}</version></plugin>
|
||||
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-deploy-plugin</artifactId><version>${maven.deploy.plugin}</version></plugin>
|
||||
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-install-plugin</artifactId><version>${maven.install.plugin}</version></plugin>
|
||||
</plugins></pluginManagement>
|
||||
<plugins>
|
||||
|
||||
@@ -23,11 +23,11 @@ def run(command):
|
||||
wrapper = ROOT / ("mvnw.cmd" if os.name == "nt" else "mvnw")
|
||||
run([sys.executable, ROOT / "scripts/check-neitzellib-artifact.py"])
|
||||
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"])
|
||||
run([wrapper, "-B", "-ntp", "-pl", "designer-target-tools", "org.apache.maven.plugins:maven-dependency-plugin:3.6.1:build-classpath", "-DincludeScope=test", "-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
|
||||
with zipfile.ZipFile(ROOT / name / "target" / (name + "-0.1.0-SNAPSHOT.jar")) as jar:
|
||||
with zipfile.ZipFile(ROOT / name / "target" / (name + "-0.1.0.jar")) as jar:
|
||||
classes = [n for n in jar.namelist() if n.endswith(".class")]
|
||||
assert classes, name
|
||||
assert all(int.from_bytes(jar.read(n)[6:8], "big") == expected for n in classes), name
|
||||
|
||||
@@ -48,7 +48,7 @@ with tempfile.TemporaryDirectory(prefix="designer-connected-") as temporary:
|
||||
crashes.check()
|
||||
local = fixture / ".neitzel-fx-designer"
|
||||
(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")]
|
||||
tools = [ROOT / ("designer-" + name) / "target" / ("designer-" + name + "-0.1.0.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,
|
||||
"de.neitzel.fxdesigner.standalone.KitWorkflowSmoke", local / "host.properties",
|
||||
|
||||
@@ -30,7 +30,7 @@ assert 'Neitzel FX Designer' in subprocess.check_output([launcher,'--help'],env=
|
||||
invalid=subprocess.run([launcher,'--unknown'],env=env,text=True,capture_output=True)
|
||||
assert invalid.returncode==2 and 'Unknown' in invalid.stderr,invalid
|
||||
jars=list((app/'Contents/app').glob('*.jar'))
|
||||
checks=ROOT/'designer-kit-ui/target/designer-kit-ui-0.1.0-SNAPSHOT-tests.jar'
|
||||
checks=ROOT/'designer-kit-ui/target/designer-kit-ui-0.1.0-tests.jar'
|
||||
classes=evidence/'agent-classes';classes.mkdir()
|
||||
subprocess.run([a.java_home/'bin/javac','-cp',os.pathsep.join(map(str,[*jars,checks])), '-d',classes,
|
||||
ROOT/'integration-tests/standalone/PackageProbe.java'],check=True)
|
||||
|
||||
@@ -24,7 +24,7 @@ if not all((java / "bin" / name).is_file() for name in ("java", "javac")):
|
||||
parser.error("Supply a full application JDK installation")
|
||||
if not maven.is_file() or not os.access(maven, os.X_OK):
|
||||
parser.error("Supply an executable Maven wrapper or Maven installation")
|
||||
tools = [ROOT / f"designer-{name}/target/designer-{name}-0.1.0-SNAPSHOT.jar"
|
||||
tools = [ROOT / f"designer-{name}/target/designer-{name}-0.1.0.jar"
|
||||
for name in ("target-tools", "contracts", "preview-api")]
|
||||
if not all(file.is_file() for file in tools):
|
||||
parser.error("Build/install the Designer Maven modules first")
|
||||
|
||||
@@ -21,7 +21,7 @@ run([ROOT/'mvnw','-B','-ntp','-pl','designer-standalone','org.apache.maven.plugi
|
||||
with tempfile.TemporaryDirectory(prefix='designer-package-') as tmp:
|
||||
stage=Path(tmp)/'input'; stage.mkdir()
|
||||
# Explicit manifest order: the verified Kit patch must precede upstream Kit.
|
||||
paths=[ROOT/'designer-standalone/target/designer-standalone-0.1.0-SNAPSHOT.jar']
|
||||
paths=[ROOT/'designer-standalone/target/designer-standalone-0.1.0.jar']
|
||||
deps=[Path(s) for s in (ROOT/'designer-standalone/target/package-classpath.txt').read_text().strip().split(os.pathsep)]
|
||||
paths += sorted(deps,key=lambda f:(0 if f.name.startswith('designer-kit-ui-') else 1,f.name))
|
||||
for file in paths:
|
||||
@@ -41,7 +41,7 @@ with tempfile.TemporaryDirectory(prefix='designer-package-') as tmp:
|
||||
run([java/'bin/jar','cfm',stage/'launcher.jar',manifest,'-C',empty,'.'])
|
||||
tools=Path(tmp)/'tools'; tools.mkdir()
|
||||
for name in ('target-tools','contracts','preview-api'):
|
||||
file=ROOT/f'designer-{name}/target/designer-{name}-0.1.0-SNAPSHOT.jar'
|
||||
file=ROOT/f'designer-{name}/target/designer-{name}-0.1.0.jar'
|
||||
shutil.copy2(file,tools/file.name)
|
||||
shutil.copy2(ROOT/'THIRD-PARTY-NOTICES.md',stage)
|
||||
runtime=Path(tmp)/'runtime'
|
||||
@@ -58,7 +58,7 @@ with tempfile.TemporaryDirectory(prefix='designer-package-') as tmp:
|
||||
assert '/tools/' not in cfg, 'Target tools leaked into the host launcher'
|
||||
inventory={str(f.relative_to(app)):hashlib.sha256(f.read_bytes()).hexdigest() for f in sorted(app.rglob('*')) if f.is_file()}
|
||||
(destination/'package-manifest.json').write_text(json.dumps({'platform':platform.platform(),'architecture':platform.machine(),
|
||||
'applicationVersion':'0.1.0-SNAPSHOT','bundleVersion':'1.0',
|
||||
'applicationVersion':'0.1.0','bundleVersion':'1.0',
|
||||
'source':subprocess.check_output(['git','rev-parse','HEAD'],cwd=ROOT,text=True).strip(),
|
||||
'workingTreeDirty':bool(subprocess.check_output(['git','status','--porcelain'],cwd=ROOT,text=True).strip()),
|
||||
'javaRelease':(java/'release').read_text(),'files':inventory},indent=2)+'\n')
|
||||
|
||||
@@ -16,7 +16,7 @@ shutil.copytree(ROOT / "integration-fixtures/preview" / args.mode, destination,
|
||||
local = destination / ".neitzel-fx-designer"
|
||||
local.mkdir()
|
||||
(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")
|
||||
tools = [ROOT / ("designer-" + name) / "target" / ("designer-" + name + "-0.1.0.jar")
|
||||
for name in ("target-tools","contracts","preview-api")]
|
||||
# Properties separators in values do not need escaping; double backslashes do.
|
||||
def prop(value): return str(value).replace("\\", "\\\\")
|
||||
|
||||
@@ -110,7 +110,7 @@ else:
|
||||
classes.mkdir()
|
||||
checks = base / "plugins/qualification/lib/projection-checks.jar"
|
||||
checks.parent.mkdir(parents=True)
|
||||
shutil.copyfile(ROOT / "designer-kit-ui/target/designer-kit-ui-0.1.0-SNAPSHOT-tests.jar", checks)
|
||||
shutil.copyfile(ROOT / "designer-kit-ui/target/designer-kit-ui-0.1.0-tests.jar", checks)
|
||||
jars = [*(args.idea_home / "lib").glob("*.jar"), *(base / "plugins").rglob("*.jar"), *(args.idea_home / "plugins/platform-problemView-plugin").rglob("*.jar")]
|
||||
sources = ROOT / "integration-tests/idea"
|
||||
suite = "Archive"
|
||||
|
||||
Reference in New Issue
Block a user