@@ -36,8 +36,7 @@ def avatica_version = "1.25.0"
3636dependencies {
3737 // dependencies needed to run with iceberg's hive catalog
3838 // these dependencies are going to be included in io-expansion-service
39- implementation (" org.apache.iceberg:iceberg-hive-metastore:$iceberg_version " )
40- permitUnusedDeclared (" org.apache.iceberg:iceberg-hive-metastore:$iceberg_version " )
39+ runtimeOnly (" org.apache.iceberg:iceberg-hive-metastore:$iceberg_version " )
4140 // analyzeClassesDependencies fails with "Cannot accept visitor on URL", likely the plugin does not recognize "core" classifier
4241 // use "core" classifier to depend on un-shaded jar
4342 runtimeOnly (" org.apache.hive:hive-exec:$hive_version :core" ) {
@@ -51,53 +50,10 @@ dependencies {
5150 runtimeOnly (" org.apache.hadoop:hadoop-yarn-server-resourcemanager:$hadoop_version " )
5251 runtimeOnly (" org.apache.hbase:hbase-client:$hbase_version " )
5352 runtimeOnly (" org.apache.calcite.avatica:avatica-core:$avatica_version " )
54- implementation (" org.apache.hive:hive-metastore:$hive_version " )
55- runtimeOnly (" org.apache.iceberg:iceberg-parquet:$iceberg_version " )
56- permitUnusedDeclared (" org.apache.hive:hive-metastore:$hive_version " )
57-
58- // ----- below dependencies are for testing and will not appear in the shaded jar -----
59- // Beam IcebergIO dependencies
60- testImplementation project(path : " :sdks:java:core" , configuration : " shadow" )
61- testImplementation project(" :sdks:java:managed" )
62- testImplementation project(" :sdks:java:io:iceberg" )
63- testRuntimeOnly project(path : " :runners:direct-java" , configuration : " shadow" )
64- testRuntimeOnly library. java. snake_yaml
65- testRuntimeOnly library. java. bigdataoss_gcs_connector
66- testRuntimeOnly library. java. hadoop_client
67-
68- // needed to set up the test environment
69- testImplementation " org.apache.iceberg:iceberg-common:$iceberg_version "
70- testImplementation " org.apache.iceberg:iceberg-core:$iceberg_version "
71- testImplementation " org.assertj:assertj-core:3.11.1"
72- testImplementation library. java. junit
73-
74- // needed to set up test Hive Metastore and run tests
75- testRuntimeOnly (" org.apache.hive.hcatalog:hive-hcatalog-core:$hive_version " ) {
76- exclude group : " org.apache.hive" , module : " hive-exec"
77- exclude group : " org.apache.parquet" , module : " parquet-hadoop-bundle"
78- }
79- testImplementation " org.apache.iceberg:iceberg-parquet:$iceberg_version "
80- testImplementation " org.apache.parquet:parquet-column:1.12.0"
53+ runtimeOnly (" org.apache.hive:hive-metastore:$hive_version " )
8154}
8255
8356configurations. all {
8457 // the fatjar "parquet-hadoop-bundle" conflicts with "parquet-hadoop" used by org.apache.iceberg:iceberg-parquet
8558 exclude group : " org.apache.parquet" , module : " parquet-hadoop-bundle"
8659}
87-
88- task integrationTest (type : Test ) {
89- group = " Verification"
90- def gcpTempLocation = project. findProperty(' gcpTempLocation' ) ?: ' gs://temp-storage-for-end-to-end-tests/iceberg-hive-it'
91- systemProperty " beamTestPipelineOptions" , JsonOutput . toJson([
92- " --tempLocation=${ gcpTempLocation} " ,
93- ])
94-
95- // Disable Gradle cache: these ITs interact with live service that should always be considered "out of date"
96- outputs. upToDateWhen { false }
97-
98- include ' **/*IT.class'
99-
100- maxParallelForks 4
101- classpath = sourceSets. test. runtimeClasspath
102- testClassesDirs = sourceSets. test. output. classesDirs
103- }
0 commit comments