This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch maintenance-branch
in repository https://gitbox.apache.org/repos/asf/causeway.git
The following commit(s) were added to refs/heads/maintenance-branch by this
push:
new 5f11d66f12e CAUSEWAY-3969: [v2] minor backport fix (not affecting
existing code)
5f11d66f12e is described below
commit 5f11d66f12e888e109cd56998daa480d4963611b
Author: andi-huber <[email protected]>
AuthorDate: Fri Feb 20 10:40:37 2026 +0100
CAUSEWAY-3969: [v2] minor backport fix (not affecting existing code)
---
adoc/build-instructions.adoc | 34 +++++++++++++++++++++-
.../beans/CausewayBeanTypeRegistryDefault.java | 3 +-
2 files changed, 35 insertions(+), 2 deletions(-)
diff --git a/adoc/build-instructions.adoc b/adoc/build-instructions.adoc
index 15a3ec59ae9..a8d3f60aca9 100644
--- a/adoc/build-instructions.adoc
+++ b/adoc/build-instructions.adoc
@@ -24,7 +24,7 @@ mvn clean install \ <.>
----
<.> `clean` required whenever switching weaving on or off
-<.> `revision` parameter can be set as desired
+<.> `revision` parameter can be set as desired, works in combination with _CI
Friendly Version Setting_ (see below)
<.> `enhanceEclipselink` optional parameter, enables static weaving
== Legacy (isis) Build
@@ -36,3 +36,35 @@ jshell scripts/ci/rename-all-published-sources.jsh
----
This will rename artifacts and packages from `causeway` to `isis`.
+
+== CI Friendly Version Setting
+
+[source,xml]
+.parent pom.xml
+----
+<build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>versions-maven-plugin</artifactId>
+ <version>2.20.1</version>
+ <!-- usage: mvn versions:set -Drevision=1.0.0-SNAPSHOT
+ to be run before install or deploy -->
+ <configuration>
+ <newVersion>${revision}</newVersion>
+ <processAllModules>true</processAllModules>
+ <generateBackupPoms>false</generateBackupPoms>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>set</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+</build>
+----
\ No newline at end of file
diff --git
a/core/config/src/main/java/org/apache/causeway/core/config/beans/CausewayBeanTypeRegistryDefault.java
b/core/config/src/main/java/org/apache/causeway/core/config/beans/CausewayBeanTypeRegistryDefault.java
index 1fbe8ed746a..741bbaf9ddb 100644
---
a/core/config/src/main/java/org/apache/causeway/core/config/beans/CausewayBeanTypeRegistryDefault.java
+++
b/core/config/src/main/java/org/apache/causeway/core/config/beans/CausewayBeanTypeRegistryDefault.java
@@ -131,7 +131,8 @@ public CausewayBeanTypeRegistryDefault(final @NonNull
Can<CausewayBeanMetaData>
@Override
public Stream<Class<?>> streamEntityTypes(final PersistenceStack
selectedStack) {
- if(selectedStack==null || !selectedStack.isJpa()) return
Stream.empty();
+ if(selectedStack==null || selectedStack.isUnspecified())
+ return Stream.empty();
return entityTypes.values().stream()
.filter(typeMeta->Objects.equals(typeMeta.getPersistenceStack().orElse(null),
selectedStack))
.<Class<?>>map(CausewayBeanMetaData::getCorrespondingClass);