Skip to content

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

[#11165] improvement(deps): Force commons-beanutils to 1.11.0 globally for all subprojects (#11271)

geyanggangf6f93b2ebe5d
diff --git a/build.gradle.kts b/build.gradle.kts
index d630488f12..4693b29da3 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -313,6 +313,8 @@ fun excludePackagesForSparkConnector(project: Project) {
}
}
+val commonsBeanutilsVersion: String = libs.versions.commons.beanutils.get()
+
subprojects {
// Gravitino Python client project didn't need to apply the java plugin
if (project.name == "client-python") {
@@ -329,6 +331,12 @@ subprojects {
apply(plugin = "maven-publish")
apply(plugin = "java")
+ // Force upgrade commons-beanutils for all subprojects to resolve outdated transitive versions
+ // pulled by Hadoop, Hive, Spark, Flink, etc.
+ configurations.all {
+ resolutionStrategy.force("commons-beanutils:commons-beanutils:$commonsBeanutilsVersion")
+ }
+
repositories {
mavenCentral()
mavenLocal()