Skip to content

Commit

Permalink
fix(test): spark dep
Browse files Browse the repository at this point in the history
  • Loading branch information
ebuildy committed Feb 22, 2022
1 parent b408ee4 commit 255b593
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 9 deletions.
12 changes: 9 additions & 3 deletions djobi-elasticsearch/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,21 @@ dependencies {
compileOnly project(':djobi-core')
compileOnly project(path: ':djobi-core', configuration: 'spark')

testImplementation(project(":djobi-tests"))
testImplementation(project(':djobi-core'))

es7(group: 'org.elasticsearch', name: 'elasticsearch-spark-30_' + scalaVersion, version:'7.16.2') {
exclude group: "org.scala-lang"
exclude group: "org.apache.spark"
exclude group: "com.google.protobuf"
exclude group: "javax.xml.bind"
}

testImplementation(
project(":djobi-tests"),
project(':djobi-core')
)

testRuntimeOnly(
project(path: ':djobi-core', configuration: 'spark')
)
}

djobi.createReleaseWithVariants(variants)
12 changes: 9 additions & 3 deletions djobi-filter-user_agent/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ dependencies {
compileOnly project(':djobi-core')
compileOnly project(path: ':djobi-core', configuration: 'spark')

testImplementation(project(':djobi-tests'))
testImplementation(project(':djobi-core'))

compileOnly(group: 'eu.bitwalker', name: 'UserAgentUtils', version: '1.21')

bitwalker(group: 'eu.bitwalker', name: 'UserAgentUtils', version: '1.21')

testImplementation(
project(":djobi-tests"),
project(':djobi-core')
)

testRuntimeOnly(
project(path: ':djobi-core', configuration: 'spark')
)
}

djobi.createReleaseWithVariants(variants)
12 changes: 9 additions & 3 deletions djobi-kafka/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ dependencies {
compileOnly project(':djobi-core')
compileOnly project(path: ':djobi-core', configuration: 'spark')

testImplementation(project(":djobi-tests"))
testImplementation(project(':djobi-core'))

kafka1(group: 'org.apache.kafka', name: 'kafka-clients', version:'1.1.1') {
exclude group: "org.xerial.snappy"
exclude group: "org.slf4j"
Expand All @@ -38,6 +35,15 @@ dependencies {
kafka2(group: 'org.apache.kafka', name: 'kafka-clients', version:'2.2.0') {
exclude group: "org.xerial.snappy"
}

testImplementation(
project(":djobi-tests"),
project(':djobi-core')
)

testRuntimeOnly(
project(path: ':djobi-core', configuration: 'spark')
)
}

djobi.createReleaseWithVariants(variants)

0 comments on commit 255b593

Please sign in to comment.