From 932d830ed43876a25221022da79b07818fb3191f Mon Sep 17 00:00:00 2001
From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com>
Date: Mon, 9 Nov 2026 15:15:42 -0300
Subject: [PATCH 1/3] build(sdk): target Java 17
---
openmetadata-sdk/pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/openmetadata-sdk/pom.xml b/openmetadata-sdk/pom.xml
index b5897606c11b..3d883cfdeb8e 100644
--- a/openmetadata-sdk/pom.xml
+++ b/openmetadata-sdk/pom.xml
@@ -168,8 +168,8 @@
org.apache.maven.plugins
maven-compiler-plugin
- 21
- 21
+ 17
+ 17
From 67601afff77dff30a4106fb8179c57a93a3f7689 Mon Sep 17 00:00:00 2001
From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com>
Date: Fri, 8 May 2026 10:01:16 -0300
Subject: [PATCH 2/3] fix: make openmetadata-sdk tests pass on Java 17
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Two unrelated blockers prevented the SDK module from being usable on
Java 17 against the 1.12.6-release tag:
1. JUnit / Surefire version mismatch — sdk pom pinned junit
5.9.3 / junit-platform 1.9.3 locally, while parent (and the
maven-surefire-plugin shipped launcher) expected 5.11.4 / 1.11.4.
Test discovery failed with:
JUnitException: ... resolution failed:
'boolean ReflectionUtils.returnsVoid(java.lang.reflect.Method)'
because returnsVoid was added in junit-platform-commons 1.10+.
Bump sdk pom to junit 5.11.4 / platform 1.11.4 to align with parent
and the running surefire plugin.
2. Java 21-only API in test code — DomainMockTest.testRetrieveDomainWithChildren
used List#getFirst() (added in JDK 21 via SequencedCollection).
That blocked test compilation on Java 17 even with -release=17.
Replace with get(0).
After both fixes: 195/195 tests pass on Java 17 with
-Dmaven.compiler.release=17 (and continue to pass on Java 21).
Co-Authored-By: Claude Sonnet 4.6
(cherry picked from commit 563a9996a37fe9efd405a3aeaa151cf3b60fb09b)
(cherry picked from commit 585dbf02ae84f153ee183c0ae47975f7f4a439b8)
---
.../test/java/org/openmetadata/sdk/entities/DomainMockTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/openmetadata-sdk/src/test/java/org/openmetadata/sdk/entities/DomainMockTest.java b/openmetadata-sdk/src/test/java/org/openmetadata/sdk/entities/DomainMockTest.java
index 7fa805ac01c5..d84ef423971a 100644
--- a/openmetadata-sdk/src/test/java/org/openmetadata/sdk/entities/DomainMockTest.java
+++ b/openmetadata-sdk/src/test/java/org/openmetadata/sdk/entities/DomainMockTest.java
@@ -196,7 +196,7 @@ void testRetrieveDomainWithChildren() {
if (result.getChildren() != null) {
assertEquals(2, result.getChildren().size(), "Should have 2 child domains");
- org.openmetadata.schema.type.EntityReference child1 = result.getChildren().getFirst();
+ org.openmetadata.schema.type.EntityReference child1 = result.getChildren().get(0);
assertEquals("Backend", child1.getName(), "First child name should match");
assertTrue(
child1.getFullyQualifiedName().startsWith(parentName + "."),
From c2b9ade00016814d3d3cff72e665b1e6977b8dbf Mon Sep 17 00:00:00 2001
From: Joao Amaral <7281460+joaopamaral@users.noreply.github.com>
Date: Tue, 10 Nov 2026 11:18:04 -0300
Subject: [PATCH 3/3] build: version 2.0.7-a8c.1 and compile common/spec for
Java 17
The stock 2.0.7 common and openmetadata-spec jars are compiled for Java 21 (class file 65), so a Java 17 consumer cannot use them even with a Java 17 SDK. Build the whole chain (common, spec, sdk) for Java 17 under one version so the published SDK POM references the matching spec/common artifacts. ArrayAlignment used List.reversed() (Java 21 SequencedCollection); replaced with Collections.reverse().
Co-Authored-By: Claude Fable 5.1
---
common/pom.xml | 2 +-
docker/rdf-store/pom.xml | 2 +-
openmetadata-clients/openmetadata-java-client/pom.xml | 2 +-
openmetadata-clients/pom.xml | 2 +-
openmetadata-dist/pom.xml | 2 +-
openmetadata-integration-tests/pom.xml | 2 +-
openmetadata-k8s-operator/pom.xml | 2 +-
openmetadata-mcp/pom.xml | 2 +-
openmetadata-sdk/pom.xml | 2 +-
openmetadata-service/pom.xml | 2 +-
openmetadata-shaded-deps/elasticsearch-dep/pom.xml | 2 +-
openmetadata-shaded-deps/opensearch-dep/pom.xml | 2 +-
openmetadata-shaded-deps/pom.xml | 2 +-
openmetadata-spec/pom.xml | 6 +++---
.../java/org/openmetadata/schema/utils/ArrayAlignment.java | 5 ++++-
openmetadata-ui-core-components/pom.xml | 2 +-
openmetadata-ui/pom.xml | 2 +-
pom.xml | 6 +++---
18 files changed, 25 insertions(+), 22 deletions(-)
diff --git a/common/pom.xml b/common/pom.xml
index 340fa7ee15fe..7c36a87d90bf 100644
--- a/common/pom.xml
+++ b/common/pom.xml
@@ -18,7 +18,7 @@
platform
org.open-metadata
- 2.0.7
+ 2.0.7-a8c.1
4.0.0
diff --git a/docker/rdf-store/pom.xml b/docker/rdf-store/pom.xml
index a9bf7948c115..d209d11a1fa6 100644
--- a/docker/rdf-store/pom.xml
+++ b/docker/rdf-store/pom.xml
@@ -6,7 +6,7 @@
org.open-metadata
platform
- 2.0.7
+ 2.0.7-a8c.1
../../pom.xml
openmetadata-fuseki-extensions
diff --git a/openmetadata-clients/openmetadata-java-client/pom.xml b/openmetadata-clients/openmetadata-java-client/pom.xml
index 969563e7243c..79b88d23931f 100644
--- a/openmetadata-clients/openmetadata-java-client/pom.xml
+++ b/openmetadata-clients/openmetadata-java-client/pom.xml
@@ -5,7 +5,7 @@
openmetadata-clients
org.open-metadata
- 2.0.7
+ 2.0.7-a8c.1
4.0.0
diff --git a/openmetadata-clients/pom.xml b/openmetadata-clients/pom.xml
index 1203f039ab13..af2c34b195cc 100644
--- a/openmetadata-clients/pom.xml
+++ b/openmetadata-clients/pom.xml
@@ -5,7 +5,7 @@
platform
org.open-metadata
- 2.0.7
+ 2.0.7-a8c.1
4.0.0
diff --git a/openmetadata-dist/pom.xml b/openmetadata-dist/pom.xml
index adcec055ad7a..19027d422a84 100644
--- a/openmetadata-dist/pom.xml
+++ b/openmetadata-dist/pom.xml
@@ -20,7 +20,7 @@
platform
org.open-metadata
- 2.0.7
+ 2.0.7-a8c.1
openmetadata-dist
diff --git a/openmetadata-integration-tests/pom.xml b/openmetadata-integration-tests/pom.xml
index d0a26d7f3432..d7ba24198168 100644
--- a/openmetadata-integration-tests/pom.xml
+++ b/openmetadata-integration-tests/pom.xml
@@ -3,7 +3,7 @@
platform
org.open-metadata
- 2.0.7
+ 2.0.7-a8c.1
4.0.0
openmetadata-integration-tests
diff --git a/openmetadata-k8s-operator/pom.xml b/openmetadata-k8s-operator/pom.xml
index d4502c45b8b3..546100b5e397 100644
--- a/openmetadata-k8s-operator/pom.xml
+++ b/openmetadata-k8s-operator/pom.xml
@@ -5,7 +5,7 @@
platform
org.open-metadata
- 2.0.7
+ 2.0.7-a8c.1
4.0.0
diff --git a/openmetadata-mcp/pom.xml b/openmetadata-mcp/pom.xml
index 7ddba4592961..f76836767546 100644
--- a/openmetadata-mcp/pom.xml
+++ b/openmetadata-mcp/pom.xml
@@ -8,7 +8,7 @@
org.open-metadata
platform
- 2.0.7
+ 2.0.7-a8c.1
openmetadata-mcp
diff --git a/openmetadata-sdk/pom.xml b/openmetadata-sdk/pom.xml
index 3d883cfdeb8e..ebadd566dc54 100644
--- a/openmetadata-sdk/pom.xml
+++ b/openmetadata-sdk/pom.xml
@@ -7,7 +7,7 @@
org.open-metadata
platform
- 2.0.7
+ 2.0.7-a8c.1
openmetadata-sdk
diff --git a/openmetadata-service/pom.xml b/openmetadata-service/pom.xml
index e497dda63f6a..9e48a1ee57ae 100644
--- a/openmetadata-service/pom.xml
+++ b/openmetadata-service/pom.xml
@@ -5,7 +5,7 @@
platform
org.open-metadata
- 2.0.7
+ 2.0.7-a8c.1
4.0.0
openmetadata-service
diff --git a/openmetadata-shaded-deps/elasticsearch-dep/pom.xml b/openmetadata-shaded-deps/elasticsearch-dep/pom.xml
index 29ee51dc3e20..0a7c59ed9d98 100644
--- a/openmetadata-shaded-deps/elasticsearch-dep/pom.xml
+++ b/openmetadata-shaded-deps/elasticsearch-dep/pom.xml
@@ -5,7 +5,7 @@
openmetadata-shaded-deps
org.open-metadata
- 2.0.7
+ 2.0.7-a8c.1
4.0.0
elasticsearch-deps
diff --git a/openmetadata-shaded-deps/opensearch-dep/pom.xml b/openmetadata-shaded-deps/opensearch-dep/pom.xml
index 57214d9921ba..6bfbb6c9b6ec 100644
--- a/openmetadata-shaded-deps/opensearch-dep/pom.xml
+++ b/openmetadata-shaded-deps/opensearch-dep/pom.xml
@@ -5,7 +5,7 @@
openmetadata-shaded-deps
org.open-metadata
- 2.0.7
+ 2.0.7-a8c.1
4.0.0
opensearch-deps
diff --git a/openmetadata-shaded-deps/pom.xml b/openmetadata-shaded-deps/pom.xml
index ee3fd9d48994..88b63be29654 100644
--- a/openmetadata-shaded-deps/pom.xml
+++ b/openmetadata-shaded-deps/pom.xml
@@ -5,7 +5,7 @@
platform
org.open-metadata
- 2.0.7
+ 2.0.7-a8c.1
4.0.0
openmetadata-shaded-deps
diff --git a/openmetadata-spec/pom.xml b/openmetadata-spec/pom.xml
index 39550d607645..0fab3cfa487a 100644
--- a/openmetadata-spec/pom.xml
+++ b/openmetadata-spec/pom.xml
@@ -5,7 +5,7 @@
platform
org.open-metadata
- 2.0.7
+ 2.0.7-a8c.1
4.0.0
@@ -13,8 +13,8 @@
OpenMetadata Specification
- 21
- 21
+ 17
+ 17
2.0.12-1
3.6.0
3.3.1
diff --git a/openmetadata-spec/src/main/java/org/openmetadata/schema/utils/ArrayAlignment.java b/openmetadata-spec/src/main/java/org/openmetadata/schema/utils/ArrayAlignment.java
index 6e88a81515eb..1796eda7432f 100644
--- a/openmetadata-spec/src/main/java/org/openmetadata/schema/utils/ArrayAlignment.java
+++ b/openmetadata-spec/src/main/java/org/openmetadata/schema/utils/ArrayAlignment.java
@@ -3,6 +3,7 @@
import com.fasterxml.jackson.databind.JsonNode;
import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -147,6 +148,8 @@ private static List collectRun(
for (int position = last; position >= 0; position = previous[position]) {
run.add(shared.get(position));
}
- return run.reversed();
+ // List.reversed() is Java 21 (SequencedCollection); this branch targets Java 17.
+ Collections.reverse(run);
+ return run;
}
}
diff --git a/openmetadata-ui-core-components/pom.xml b/openmetadata-ui-core-components/pom.xml
index d4a7e21fb560..df0f86502d7e 100644
--- a/openmetadata-ui-core-components/pom.xml
+++ b/openmetadata-ui-core-components/pom.xml
@@ -5,7 +5,7 @@
platform
org.open-metadata
- 2.0.7
+ 2.0.7-a8c.1
4.0.0
diff --git a/openmetadata-ui/pom.xml b/openmetadata-ui/pom.xml
index 38cf02996421..292374ad293a 100644
--- a/openmetadata-ui/pom.xml
+++ b/openmetadata-ui/pom.xml
@@ -5,7 +5,7 @@
platform
org.open-metadata
- 2.0.7
+ 2.0.7-a8c.1
4.0.0
diff --git a/pom.xml b/pom.xml
index 488744e0dcc4..5043e76ab30d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -26,7 +26,7 @@
based on Open Metadata Standards/APIs, supporting connectors to a wide range of data services,
OpenMetadata enables end-to-end metadata management, giving you the freedom to unlock the value of your data assets.
- 2.0.7
+ 2.0.7-a8c.1
https://github.com/open-metadata/OpenMetadata
openmetadata-spec
@@ -1197,8 +1197,8 @@
maven-compiler-plugin
3.13.0
- 21
- 21
+ 17
+ 17
org.projectlombok