Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ class BeamModulePlugin implements Plugin<Project> {
commons_collections : "commons-collections:commons-collections:3.2.2",
commons_compress : "org.apache.commons:commons-compress:1.26.2",
commons_csv : "org.apache.commons:commons-csv:1.8",
commons_io : "commons-io:commons-io:2.16.1",
commons_io : "commons-io:commons-io:2.19.0",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Define commons_configuration2 centrally in BeamModulePlugin.groovy so that it can be referenced across subprojects (like hbase and iceberg) instead of hardcoding the version string in multiple places.

        commons_configuration2                      : "org.apache.commons:commons-configuration2:2.15.0",
        commons_io                                  : "commons-io:commons-io:2.19.0",

commons_lang3 : "org.apache.commons:commons-lang3:3.18.0",
commons_logging : "commons-logging:commons-logging:1.2",
commons_math3 : "org.apache.commons:commons-math3:3.6.1",
Expand Down
8 changes: 8 additions & 0 deletions sdks/java/io/hbase/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,11 @@ dependencies {
testImplementation("org.apache.hbase:hbase-shaded-testing-util:$hbase_version")
testRuntimeOnly project(path: ":runners:direct-java", configuration: "shadow")
}

configurations.all {
resolutionStrategy {
// TODO: remove after higher version of hbase (>2.6.5) contains this minimum version.
force 'org.apache.commons:commons-configuration2:2.15.0'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To maintain centralized dependency management, avoid hardcoding the dependency coordinates and version here. Instead, reference the centralized dependency from BeamModulePlugin.groovy using library.java.commons_configuration2.

    force library.java.commons_configuration2

}
}

4 changes: 4 additions & 0 deletions sdks/java/io/iceberg/hive/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,8 @@ dependencies {
configurations.all {
// the fatjar "parquet-hadoop-bundle" conflicts with "parquet-hadoop" used by org.apache.iceberg:iceberg-parquet
exclude group: "org.apache.parquet", module: "parquet-hadoop-bundle"
// TODO: remove after higher version of hbase (>2.6.5) contains this minimum version.
resolutionStrategy {
force 'org.apache.commons:commons-configuration2:2.15.0'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To maintain centralized dependency management, avoid hardcoding the dependency coordinates and version here. Instead, reference the centralized dependency from BeamModulePlugin.groovy using library.java.commons_configuration2.

        force library.java.commons_configuration2

}
}
Loading