From 1adf4f4a7d38a5a46d9f57f38e1d68f348b9ad44 Mon Sep 17 00:00:00 2001 From: Yiqiang Ding Date: Thu, 8 Jun 2023 05:26:38 -0700 Subject: [PATCH] Add Hadoop libraries as runtimeOnly dependeny in transportable-udfs-test-hive/generic/trino (#154) * Add Hadoop libraries as runtimeOnly dependeny in transportable-udfs-test-hive/trino/generic Co-authored-by: Yiqiang Ding --- .../transportable-udfs-example-udfs/build.gradle | 2 -- .../transportable-udfs-test-generic/build.gradle | 2 ++ .../transportable-udfs-test-hive/build.gradle | 2 ++ .../transportable-udfs-test-trino/build.gradle | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/transportable-udfs-examples/transportable-udfs-example-udfs/build.gradle b/transportable-udfs-examples/transportable-udfs-example-udfs/build.gradle index f9a6dc08..bbd89d87 100644 --- a/transportable-udfs-examples/transportable-udfs-example-udfs/build.gradle +++ b/transportable-udfs-examples/transportable-udfs-example-udfs/build.gradle @@ -13,8 +13,6 @@ dependencies { implementation('org.apache.commons:commons-io:1.3.2') testImplementation('io.airlift:aircompressor:0.21') testImplementation('org.junit.jupiter:junit-jupiter-api:5.9.2') - testImplementation 'org.apache.hadoop:hadoop-common:2.7.4' - testImplementation 'org.apache.hadoop:hadoop-mapreduce-client-core:2.7.4' } // As the tasks of trinoDistThinJar and trinoTrinJar are from Transport plugin which is built by Gradle 7.5.1, diff --git a/transportable-udfs-test/transportable-udfs-test-generic/build.gradle b/transportable-udfs-test/transportable-udfs-test-generic/build.gradle index dbc126fe..af18aea6 100644 --- a/transportable-udfs-test/transportable-udfs-test-generic/build.gradle +++ b/transportable-udfs-test/transportable-udfs-test-generic/build.gradle @@ -9,6 +9,8 @@ dependencies { implementation 'org.testng:testng:6.11' compileOnly 'org.apache.hadoop:hadoop-common:2.7.4' compileOnly 'org.apache.hadoop:hadoop-mapreduce-client-core:2.7.4' + runtimeOnly 'org.apache.hadoop:hadoop-common:2.7.4' + runtimeOnly 'org.apache.hadoop:hadoop-mapreduce-client-core:2.7.4' testImplementation 'org.apache.hadoop:hadoop-common:2.7.4' testImplementation 'org.apache.hadoop:hadoop-mapreduce-client-core:2.7.4' } \ No newline at end of file diff --git a/transportable-udfs-test/transportable-udfs-test-hive/build.gradle b/transportable-udfs-test/transportable-udfs-test-hive/build.gradle index 37814041..ae6c83b3 100644 --- a/transportable-udfs-test/transportable-udfs-test-hive/build.gradle +++ b/transportable-udfs-test/transportable-udfs-test-hive/build.gradle @@ -13,4 +13,6 @@ dependencies { implementation ('org.apache.hive:hive-service:1.2.2') { exclude group: 'org.apache.hive', module: 'hive-exec' } + runtimeOnly 'org.apache.hadoop:hadoop-common:2.7.4' + runtimeOnly 'org.apache.hadoop:hadoop-mapreduce-client-core:2.7.4' } \ No newline at end of file diff --git a/transportable-udfs-test/transportable-udfs-test-trino/build.gradle b/transportable-udfs-test/transportable-udfs-test-trino/build.gradle index e0cf9a3f..1bf5fa63 100644 --- a/transportable-udfs-test/transportable-udfs-test-trino/build.gradle +++ b/transportable-udfs-test/transportable-udfs-test-trino/build.gradle @@ -22,4 +22,6 @@ dependencies { // If not specified, an older version is picked up transitively from another dependency implementation(group: 'io.airlift', name: 'slice', version: project.ext.'airlift-slice-version') implementation(group: 'org.assertj', name: 'assertj-core', version: '3.24.2') + runtimeOnly 'org.apache.hadoop:hadoop-common:2.7.4' + runtimeOnly 'org.apache.hadoop:hadoop-mapreduce-client-core:2.7.4' } \ No newline at end of file