Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#8628] fix(build): Skip tests in release task to avoid JDK version conflicts (#9316)

Jerry Shao067ca0c4bcee
diff --git a/build.gradle.kts b/build.gradle.kts
index dbac9bbf74..c807b4e126 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -1181,5 +1181,13 @@ tasks.register("release") {
println("Releasing project...")
}
- dependsOn(subprojects.map { it.tasks.named("build") })
+ // Use 'assemble' instead of 'build' to skip tests during release
+ // Tests have JDK version conflicts (some need JDK 8, some need JDK 17)
+ // and should be run separately in CI/CD with appropriate JDK configurations
+ // Only include subprojects that apply the Java plugin (exclude client-python)
+ dependsOn(
+ subprojects
+ .filter { it.name != "client-python" }
+ .map { it.tasks.named("assemble") }
+ )
}