Skip to content

Commit

Permalink
remove force = true
Browse files Browse the repository at this point in the history
  • Loading branch information
krasinski committed Apr 24, 2024
1 parent 2c76f07 commit d05298b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 13 deletions.
28 changes: 17 additions & 11 deletions h2o-hadoop-2/assemblyjar.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,19 @@ if (hasCustomHdfsDep) {
}

dependencies {
api("org.apache.hadoop:hadoop-client:$hadoopMavenArtifactVersion") {
force = true
}
api("org.apache.hadoop:hadoop-common:$hadoopMavenArtifactVersion") {
force = true
}
api("org.apache.hadoop:hadoop-client")
api("org.apache.hadoop:hadoop-common")

if (hasCustomHdfsDep) {
api("org.apache.hadoop:${hdfsDependency}:$hadoopMavenArtifactVersion") {
force = true
}
api("org.apache.hadoop:${hdfsDependency}")
}

api(project(":h2o-mapreduce-generic")) {
transitive = false
}
api project(":h2o-security")
api project(":h2o-ext-steam")
// Libraries need for Google Cloud Storage strongly require this Guava version
api('com.google.guava:guava:20.0') {force = true}
api('com.google.guava:guava')
api(project(':h2o-app')) {
exclude module: "${defaultWebserverModule}"
}
Expand Down Expand Up @@ -78,6 +73,17 @@ dependencies {
api(project(":h2o-parquet-parser")) {
transitive = false
}

constraints {
api("org.apache.hadoop:hadoop-client:$hadoopMavenArtifactVersion")
api("org.apache.hadoop:hadoop-common:$hadoopMavenArtifactVersion")
if (hasCustomHdfsDep) {
api("org.apache.hadoop:${hdfsDependency}:$hadoopMavenArtifactVersion")
}
// Libraries needed for Google Cloud Storage strongly require this Guava version
api('com.google.guava:guava:20.0')
}

}

apply from: "${rootDir}/h2o-parsers/h2o-parquet-parser/parquet_dependencies.gradle"
Expand Down
5 changes: 4 additions & 1 deletion h2o-hadoop-3/assemblyjar.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ dependencies {
api "org.apache.hadoop:hadoop-mapreduce-client-app:$hadoopMavenArtifactVersion"
api "org.apache.hadoop:hadoop-aws:$hadoopMavenArtifactVersion"
// Libraries need for Google Cloud Storage strongly require this Guava version
api('com.google.guava:guava:20.0') { force = true }
api('com.google.guava:guava')
api(project(':h2o-app')) {
exclude module: "${defaultWebserverModule}"
}
constraints {
api('com.google.guava:guava:20.0')
}
}

apply from: '../assemblyjar_common.gradle'
5 changes: 4 additions & 1 deletion h2o-hadoop-3/assemblyjar_cdp.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,17 @@ dependencies {
compileOnly "org.apache.hadoop:hadoop-client:$hadoopMavenArtifactVersion"
compileOnly "org.apache.hadoop:hadoop-mapreduce-client-app:$hadoopMavenArtifactVersion"
// Libraries need for Google Cloud Storage strongly require this Guava version
api('com.google.guava:guava:20.0') { force = true }
api('com.google.guava:guava')
api(project(':h2o-app')) {
exclude module: "${defaultWebserverModule}"
exclude module: "h2o-ext-krbstandalone" // exclude here to avoid pulling all transitive dependencies
}
api(project(':h2o-ext-krbstandalone')) { // include without dependencies
transitive = false
}
constraints {
api('com.google.guava:guava:20.0')
}
}

apply from: '../assemblyjar_common.gradle'

0 comments on commit d05298b

Please sign in to comment.