Skip to content

Commit

Permalink
Exclude Hadoop dependencies from distribution package of Trino (#153)
Browse files Browse the repository at this point in the history
* Exclude Hadoop dependencies from distribution package of Trino
---------

Co-authored-by: Yiqiang Ding <[email protected]>
  • Loading branch information
yiqiangin authored Jun 5, 2023
1 parent d2d62d2 commit 9e80b20
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ 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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ dependencies {
implementation project(":transportable-udfs-test:transportable-udfs-test-api")
implementation project(":transportable-udfs-test:transportable-udfs-test-spi")
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'
testImplementation 'org.apache.hadoop:hadoop-common:2.7.4'
testImplementation 'org.apache.hadoop:hadoop-mapreduce-client-core:2.7.4'
}
4 changes: 2 additions & 2 deletions transportable-udfs-trino/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ dependencies {
exclude 'group': 'com.google.collections', 'module': 'google-collections'
}
compileOnly(group:'io.trino', name: 'trino-spi', version: project.ext.'trino-version')
implementation('org.apache.hadoop:hadoop-hdfs:2.7.4')
implementation('org.apache.hadoop:hadoop-common:2.7.4')
compileOnly('org.apache.hadoop:hadoop-hdfs:2.7.4')
compileOnly('org.apache.hadoop:hadoop-common:2.7.4')
testImplementation group: 'io.airlift', name: 'testing', version: '221'
// The io.airlift.slice dependency below has to match its counterpart in trino-root's pom.xml file
// If not specified, an older version is picked up transitively from another dependency
Expand Down
6 changes: 4 additions & 2 deletions transportable-udfs-utils/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apply plugin: 'java-library'

dependencies {
api 'org.apache.hadoop:hadoop-common:2.7.4'
implementation 'org.apache.hadoop:hadoop-mapreduce-client-core:2.7.4'
compileOnly 'org.apache.hadoop:hadoop-common:2.7.4'
compileOnly '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'
}

0 comments on commit 9e80b20

Please sign in to comment.