@@ -23,9 +23,17 @@ applyJavaNature(
2323 requireJavaVersion : JavaVersion . VERSION_17 ,
2424)
2525
26+ tasks. withType(JavaCompile ) {
27+ options. errorprone. enabled = false
28+ }
29+
2630description = " Apache Beam :: SDKs :: Java :: IO :: Delta Lake"
2731ext. summary = " Integration with Delta Lake."
2832
33+ // We need to override the GCS bigdataos connector version to prevent conflicts.
34+ def bigdataoss_gcs_connector_version = " 4.0.4"
35+
36+ def parquet_version = " 1.16.0"
2937
3038dependencies {
3139 implementation project(path : " :sdks:java:core" , configuration : " shadow" )
@@ -35,5 +43,45 @@ dependencies {
3543 permitUnusedDeclared library. java. delta_kernel_api
3644 permitUnusedDeclared library. java. delta_kernel_defaults
3745
46+ implementation library. java. hadoop_common
47+ implementation library. java. joda_time
48+ implementation library. java. slf4j_api
49+ implementation " org.apache.parquet:parquet-column:$parquet_version "
50+ implementation " org.apache.parquet:parquet-hadoop:$parquet_version "
51+
52+ // We need to override the GCS connector version to prevent conflicts with
53+ // latest Hadoop.
54+ implementation " com.google.cloud.bigdataoss:gcs-connector:$bigdataoss_gcs_connector_version "
55+ implementation " com.google.cloud.bigdataoss:util-hadoop:$bigdataoss_gcs_connector_version "
56+ implementation " com.google.cloud.bigdataoss:gcsio:$bigdataoss_gcs_connector_version "
57+ implementation " com.google.cloud.bigdataoss:util:$bigdataoss_gcs_connector_version "
58+ permitUnusedDeclared " com.google.cloud.bigdataoss:gcs-connector:$bigdataoss_gcs_connector_version "
59+ permitUnusedDeclared " com.google.cloud.bigdataoss:util-hadoop:$bigdataoss_gcs_connector_version "
60+ permitUnusedDeclared " com.google.cloud.bigdataoss:gcsio:$bigdataoss_gcs_connector_version "
61+ permitUnusedDeclared " com.google.cloud.bigdataoss:util:$bigdataoss_gcs_connector_version "
62+
63+ // For Avro conversions
64+ testImplementation project(" :sdks:java:extensions:avro" )
65+
66+ testImplementation library. java. avro
3867 testImplementation library. java. junit
68+ testImplementation library. java. hamcrest
69+ testImplementation " org.apache.parquet:parquet-avro:$parquet_version "
70+ testImplementation project(" :sdks:java:io:parquet" )
71+ testImplementation project(" :sdks:java:managed" )
72+ testRuntimeOnly " org.yaml:snakeyaml:2.0"
73+ testImplementation project(path : " :runners:direct-java" , configuration : " shadow" )
74+ }
75+
76+ configurations. all {
77+ // Exclude conflicting logging frameworks
78+ exclude group : " org.apache.logging.log4j" , module : " log4j-slf4j2-impl"
79+ exclude group : " org.apache.logging.log4j" , module : " log4j-slf4j-impl"
80+ exclude group : " org.slf4j" , module : " slf4j-reload4j"
81+
82+ // Force overriding for all configurations
83+ resolutionStrategy. force " com.google.cloud.bigdataoss:gcs-connector:$bigdataoss_gcs_connector_version "
84+ resolutionStrategy. force " com.google.cloud.bigdataoss:util-hadoop:$bigdataoss_gcs_connector_version "
85+ resolutionStrategy. force " com.google.cloud.bigdataoss:gcsio:$bigdataoss_gcs_connector_version "
86+ resolutionStrategy. force " com.google.cloud.bigdataoss:util:$bigdataoss_gcs_connector_version "
3987}
0 commit comments