@@ -26,6 +26,10 @@ applyJavaNature(
2626description = " Apache Beam :: SDKs :: Java :: IO :: Delta Lake"
2727ext. summary = " Integration with Delta Lake."
2828
29+ // We need to override the GCS bigdataos connector version to prevent conflicts.
30+ def bigdataoss_gcs_connector_version = " 4.0.4"
31+
32+ def parquet_version = " 1.16.0"
2933
3034dependencies {
3135 implementation project(path : " :sdks:java:core" , configuration : " shadow" )
@@ -35,5 +39,45 @@ dependencies {
3539 permitUnusedDeclared library. java. delta_kernel_api
3640 permitUnusedDeclared library. java. delta_kernel_defaults
3741
42+ implementation library. java. hadoop_common
43+ implementation library. java. joda_time
44+ // implementation library.java.slf4j_api
45+ implementation " org.apache.parquet:parquet-column:$parquet_version "
46+ implementation " org.apache.parquet:parquet-hadoop:$parquet_version "
47+
48+ // We need to override the GCS connector version to prevent conflicts with
49+ // latest Hadoop.
50+ implementation " com.google.cloud.bigdataoss:gcs-connector:$bigdataoss_gcs_connector_version "
51+ implementation " com.google.cloud.bigdataoss:util-hadoop:$bigdataoss_gcs_connector_version "
52+ implementation " com.google.cloud.bigdataoss:gcsio:$bigdataoss_gcs_connector_version "
53+ implementation " com.google.cloud.bigdataoss:util:$bigdataoss_gcs_connector_version "
54+ permitUnusedDeclared " com.google.cloud.bigdataoss:gcs-connector:$bigdataoss_gcs_connector_version "
55+ permitUnusedDeclared " com.google.cloud.bigdataoss:util-hadoop:$bigdataoss_gcs_connector_version "
56+ permitUnusedDeclared " com.google.cloud.bigdataoss:gcsio:$bigdataoss_gcs_connector_version "
57+ permitUnusedDeclared " com.google.cloud.bigdataoss:util:$bigdataoss_gcs_connector_version "
58+
59+ // For Avro conversions
60+ testImplementation project(" :sdks:java:extensions:avro" )
61+
62+ testImplementation library. java. avro
3863 testImplementation library. java. junit
64+ testImplementation library. java. hamcrest
65+ testImplementation " org.apache.parquet:parquet-avro:$parquet_version "
66+ testImplementation project(" :sdks:java:io:parquet" )
67+ testImplementation project(" :sdks:java:managed" )
68+ testRuntimeOnly " org.yaml:snakeyaml:2.0"
69+ testImplementation project(path : " :runners:direct-java" , configuration : " shadow" )
70+ }
71+
72+ configurations. all {
73+ // Exclude conflicting logging frameworks
74+ exclude group : " org.apache.logging.log4j" , module : " log4j-slf4j2-impl"
75+ exclude group : " org.apache.logging.log4j" , module : " log4j-slf4j-impl"
76+ exclude group : " org.slf4j" , module : " slf4j-reload4j"
77+
78+ // Force overriding for all configurations
79+ resolutionStrategy. force " com.google.cloud.bigdataoss:gcs-connector:$bigdataoss_gcs_connector_version "
80+ resolutionStrategy. force " com.google.cloud.bigdataoss:util-hadoop:$bigdataoss_gcs_connector_version "
81+ resolutionStrategy. force " com.google.cloud.bigdataoss:gcsio:$bigdataoss_gcs_connector_version "
82+ resolutionStrategy. force " com.google.cloud.bigdataoss:util:$bigdataoss_gcs_connector_version "
3983}
0 commit comments