-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/rel-3.42.0'
- Loading branch information
Showing
4 changed files
with
51 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
h2o-parsers/h2o-parquet-parser/parquet_dependencies.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
def parquetHadoopVersion = binding.variables.get("hadoopVersion") ? | ||
binding.variables.get("hadoopVersion") : defaultHadoopVersion | ||
|
||
configurations{ | ||
// Configuration used to get all transitive dependencies for org.apache.hadoop:hadoop-common | ||
hadoopCommonExclude | ||
} | ||
|
||
dependencies { | ||
hadoopCommonExclude("org.apache.hadoop:hadoop-common:${parquetHadoopVersion}") | ||
|
||
api project(":h2o-core") | ||
api(project(":h2o-persist-hdfs")) { | ||
exclude group: 'ai.h2o', module: 'h2o-core' | ||
exclude group: 'net.java.dev.jets3t', module: 'jets3t' | ||
exclude group: 'org.apache.hadoop', module: 'hadoop-client' | ||
exclude group: 'org.apache.hadoop', module: 'hadoop-aws' | ||
} | ||
|
||
// Parquet support | ||
api("org.apache.parquet:parquet-hadoop:${defaultParquetVersion}") | ||
|
||
|
||
api("org.apache.hadoop:hadoop-common:${parquetHadoopVersion}") { | ||
// we can't use transitive=false so we need to exclude the dependencies manually | ||
configurations.hadoopCommonExclude.getResolvedConfiguration().getResolvedArtifacts().each { | ||
if (it.moduleVersion.id.group != "org.apache.hadoop" && it.moduleVersion.id.module.name != "hadoop-common") { | ||
exclude group: it.moduleVersion.id.group, module: it.moduleVersion.id.module.name | ||
} | ||
} | ||
} | ||
implementation("org.apache.hadoop:hadoop-mapreduce-client-core:${parquetHadoopVersion}") { | ||
transitive = false | ||
} | ||
} |