Prepare NeitzelLib 1.0 for the Gitea Maven registry

This commit is contained in:
2026-11-16 21:28:40 +01:00
parent 1b03a13260
commit 502cc5d719
19 changed files with 58 additions and 25 deletions
+28 -2
View File
@@ -81,9 +81,35 @@ Some additions for quarkus that might be useful.
## Start a JavaFX project ## Start a JavaFX project
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. The [complete quick start](fx/docs/quick-start.md) includes local 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 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. Build with Java 25. Maven wrapper version is 3.9.11; the project requires Maven 3.9.11 or later. Surefire fails the build if tests fail.
## Use a release from Maven
Add the Gitea registry to the consuming project's POM and use the release
version for the module you need:
```xml
<repositories>
<repository>
<id>gitea-neitzellib</id>
<url>https://gitea.neitzel.de/api/packages/konrad/maven</url>
<snapshots><enabled>false</enabled></snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>de.neitzel.lib</groupId>
<artifactId>fx</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
```
The POM and transitive NeitzelLib modules resolve from the same registry.
See the [Gitea releases](https://gitea.neitzel.de/konrad/NeitzelLib/releases)
for the source tags and release notes.
## Java source conventions ## Java source conventions
+1 -1
View File
@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>de.neitzel.lib</groupId> <groupId>de.neitzel.lib</groupId>
<artifactId>neitzellib</artifactId> <artifactId>neitzellib</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0</version>
</parent> </parent>
<artifactId>core</artifactId> <artifactId>core</artifactId>
+1 -1
View File
@@ -1,5 +1,5 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion><parent><groupId>de.neitzel.lib</groupId><artifactId>neitzellib</artifactId><version>1.0-SNAPSHOT</version></parent> <modelVersion>4.0.0</modelVersion><parent><groupId>de.neitzel.lib</groupId><artifactId>neitzellib</artifactId><version>1.0</version></parent>
<artifactId>data-grid-jdbc</artifactId><description>Optional mapped JDBC grid source</description> <artifactId>data-grid-jdbc</artifactId><description>Optional mapped JDBC grid source</description>
<dependencies><dependency><groupId>de.neitzel.lib</groupId><artifactId>data-grid</artifactId><version>${project.version}</version></dependency> <dependencies><dependency><groupId>de.neitzel.lib</groupId><artifactId>data-grid</artifactId><version>${project.version}</version></dependency>
<dependency><groupId>com.h2database</groupId><artifactId>h2</artifactId><version>2.5.252</version><scope>test</scope></dependency></dependencies></project> <dependency><groupId>com.h2database</groupId><artifactId>h2</artifactId><version>2.5.252</version><scope>test</scope></dependency></dependencies></project>
+1 -1
View File
@@ -1,6 +1,6 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent><groupId>de.neitzel.lib</groupId><artifactId>neitzellib</artifactId><version>1.0-SNAPSHOT</version></parent> <parent><groupId>de.neitzel.lib</groupId><artifactId>neitzellib</artifactId><version>1.0</version></parent>
<artifactId>data-grid</artifactId> <artifactId>data-grid</artifactId>
<description>Toolkit-independent filter, query and grid setup contracts</description> <description>Toolkit-independent filter, query and grid setup contracts</description>
</project> </project>
+1 -1
View File
@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>de.neitzel.lib</groupId> <groupId>de.neitzel.lib</groupId>
<artifactId>neitzellib</artifactId> <artifactId>neitzellib</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0</version>
</parent> </parent>
<artifactId>encryption</artifactId> <artifactId>encryption</artifactId>
+2 -2
View File
@@ -30,12 +30,12 @@ From the NeitzelLib root with JDK 25:
./mvnw -f fx-example/pom.xml javafx:run ./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. See the [quick start](../fx/docs/quick-start.md) for test reports. The first command installs local `1.0` 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: The packaged alternative, after `package` or `install`, is:
```bash ```bash
java -jar fx-example/target/fx-example-1.0-SNAPSHOT.jar java -jar fx-example/target/fx-example-1.0.jar
``` ```
Keep the adjacent `target/libs` directory with the JAR: the manifest refers to those copied runtime dependencies. A desktop session is required. This example has no `module-info.java`; it is a classpath application. Keep the adjacent `target/libs` directory with the JAR: the manifest refers to those copied runtime dependencies. A desktop session is required. This example has no `module-info.java`; it is a classpath application.
+1 -1
View File
@@ -6,7 +6,7 @@ From the repository root with JDK 25, build without installing runtime artifacts
```sh ```sh
./mvnw -pl fx-example -am package -DskipTests ./mvnw -pl fx-example -am package -DskipTests
java -cp 'fx-example/target/fx-example-1.0-SNAPSHOT.jar:fx-example/target/libs/*' de.neitzel.fx.example.grid.ProductGridMain java -cp 'fx-example/target/fx-example-1.0.jar:fx-example/target/libs/*' de.neitzel.fx.example.grid.ProductGridMain
``` ```
The default catalog has 10,000 products. Both backends use identical stable IDs, names, categories, quantities and DECIMAL(12,2) prices. Fixtures include duplicate sort values, nulls, empty text, mixed case, Unicode, apostrophes and literal SQL wildcard characters. One `ProductCatalog` service maintains original text and Locale.ROOT comparison keys together on insertion/reset. Mutations run on application workers and explicitly refresh the grid; browsing is read-only. The default catalog has 10,000 products. Both backends use identical stable IDs, names, categories, quantities and DECIMAL(12,2) prices. Fixtures include duplicate sort values, nulls, empty text, mixed case, Unicode, apostrophes and literal SQL wildcard characters. One `ProductCatalog` service maintains original text and Locale.ROOT comparison keys together on insertion/reset. Mutations run on application workers and explicitly refresh the grid; browsing is read-only.
+1 -1
View File
@@ -5,7 +5,7 @@
After the reactor `verify` or `package` build, from the repository root (no local artifact install required): After the reactor `verify` or `package` build, from the repository root (no local artifact install required):
```sh ```sh
java -cp 'fx-example/target/fx-example-1.0-SNAPSHOT.jar:fx-example/target/libs/*' \ java -cp 'fx-example/target/fx-example-1.0.jar:fx-example/target/libs/*' \
de.neitzel.fx.example.theme.ThemeGalleryMain de.neitzel.fx.example.theme.ThemeGalleryMain
``` ```
+1 -1
View File
@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>de.neitzel.lib</groupId> <groupId>de.neitzel.lib</groupId>
<artifactId>neitzellib</artifactId> <artifactId>neitzellib</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0</version>
</parent> </parent>
<artifactId>fx-example</artifactId> <artifactId>fx-example</artifactId>
+1 -1
View File
@@ -51,7 +51,7 @@ These are the versions configured by this source snapshot, not a promise of comp
| --- | --- | --- | | --- | --- | --- |
| JDK | Java 25 | Select a matching JDK for compilation and launch | | 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 | | 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 | | Library | `de.neitzel.lib:fx:1.0` | Use the Gitea Maven registry or install the local reactor |
| Internal modules | `fx` directly depends on `core`, `injection` and toolkit-independent `data-grid` | Resolved transitively through Maven | | Internal modules | `fx` directly depends on `core`, `injection` and toolkit-independent `data-grid` | Resolved transitively through Maven |
| JavaFX | 27.0.1: 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 scanning | Reflections 0.10.2 | Brought by `injection` |
+4 -4
View File
@@ -1,13 +1,13 @@
# Your first JavaFX application # Your first JavaFX application
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. 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 NeitzelLib 1.0. The source build below uses the matching release tag.
## Prepare the library ## Prepare the library
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. 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 ```bash
git clone https://gitea.neitzel.de/konrad/NeitzelLib.git git clone --branch v1.0 https://gitea.neitzel.de/konrad/NeitzelLib.git
cd NeitzelLib cd NeitzelLib
./mvnw -pl fx-example -am install ./mvnw -pl fx-example -am install
./mvnw -f fx-example/pom.xml javafx:run ./mvnw -f fx-example/pom.xml javafx:run
@@ -66,7 +66,7 @@ hello-fx/
<dependency> <dependency>
<groupId>de.neitzel.lib</groupId> <groupId>de.neitzel.lib</groupId>
<artifactId>fx</artifactId> <artifactId>fx</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
@@ -190,7 +190,7 @@ For a named-module application, see the [module and lifecycle notes](architectur
| Symptom | Check | | Symptom | Check |
| --- | --- | | --- | --- |
| Maven cannot resolve `de.neitzel.lib:fx:1.0-SNAPSHOT` or its parent | Install the library reactor first; use the same Maven local repository for both projects. These instructions use local snapshots. | | Maven cannot resolve `de.neitzel.lib:fx:1.0` or its parent | Install the library reactor first; use the same Maven local repository for both projects. For direct downloads, see the [Maven repository setup](../../README.md#use-a-release-from-maven). |
| `No plugin found for prefix 'javafx'` | Invoke the example POM directly, or use the complete application POM above. Do not invoke the goal on the library reactor parent. | | `No plugin found for prefix 'javafx'` | Invoke the example POM directly, or use the complete application POM above. Do not invoke the goal on the library reactor parent. |
| JavaFX runtime/native library failure | Check the JDK version, architecture and JavaFX dependencies actually resolved; avoid mixing native artifacts from different platforms or JavaFX versions. | | JavaFX runtime/native library failure | Check the JDK version, architecture and JavaFX dependencies actually resolved; avoid mixing native artifacts from different platforms or JavaFX versions. |
| `getResource(...)` returns null | The FXML belongs under `src/main/resources` in the matching package; verify it was copied to `target/classes`. Resource names are case-sensitive. | | `getResource(...)` returns null | The FXML belongs under `src/main/resources` in the matching package; verify it was copied to `target/classes`. Resource names are case-sensitive. |
+1 -1
View File
@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>de.neitzel.lib</groupId> <groupId>de.neitzel.lib</groupId>
<artifactId>neitzellib</artifactId> <artifactId>neitzellib</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0</version>
</parent> </parent>
<artifactId>fx</artifactId> <artifactId>fx</artifactId>
+1 -1
View File
@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>de.neitzel.lib</groupId> <groupId>de.neitzel.lib</groupId>
<artifactId>neitzellib</artifactId> <artifactId>neitzellib</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0</version>
</parent> </parent>
<artifactId>gson</artifactId> <artifactId>gson</artifactId>
+2 -2
View File
@@ -8,13 +8,13 @@ The worked example is the person desk in `fx-example`, package `de.neitzel.fx.ex
## Quick start ## 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 25. 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`. Java 25.
```xml ```xml
<dependency> <dependency>
<groupId>de.neitzel.lib</groupId> <groupId>de.neitzel.lib</groupId>
<artifactId>injection</artifactId> <artifactId>injection</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0</version>
</dependency> </dependency>
``` ```
+1 -1
View File
@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>de.neitzel.lib</groupId> <groupId>de.neitzel.lib</groupId>
<artifactId>neitzellib</artifactId> <artifactId>neitzellib</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0</version>
</parent> </parent>
<artifactId>injection</artifactId> <artifactId>injection</artifactId>
+1 -1
View File
@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>de.neitzel.lib</groupId> <groupId>de.neitzel.lib</groupId>
<artifactId>neitzellib</artifactId> <artifactId>neitzellib</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0</version>
</parent> </parent>
<artifactId>log4j</artifactId> <artifactId>log4j</artifactId>
+1 -1
View File
@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>de.neitzel.lib</groupId> <groupId>de.neitzel.lib</groupId>
<artifactId>neitzellib</artifactId> <artifactId>neitzellib</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0</version>
</parent> </parent>
<artifactId>net</artifactId> <artifactId>net</artifactId>
+8 -1
View File
@@ -6,10 +6,17 @@
<groupId>de.neitzel.lib</groupId> <groupId>de.neitzel.lib</groupId>
<artifactId>neitzellib</artifactId> <artifactId>neitzellib</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<distributionManagement>
<repository>
<id>gitea-neitzellib</id>
<url>https://gitea.neitzel.de/api/packages/konrad/maven</url>
</repository>
</distributionManagement>
<modules> <modules>
<module>core</module> <module>core</module>
<module>encryption</module> <module>encryption</module>
+1 -1
View File
@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>de.neitzel.lib</groupId> <groupId>de.neitzel.lib</groupId>
<artifactId>neitzellib</artifactId> <artifactId>neitzellib</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0</version>
</parent> </parent>
<artifactId>quarkus</artifactId> <artifactId>quarkus</artifactId>