Skip to content

Commit

Permalink
Modified CI build to publish a jar for both Spark 2.3.0 and 2.4.3. (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
jverbus authored Jan 23, 2020
1 parent 08f1013 commit e5f12bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ branches:

#Build and perform release (if needed)
script:
- ./gradlew build -s && ./gradlew ciPerformRelease
- ./gradlew build -s -PsparkVersion=2.3.0 && ./gradlew build -s -PsparkVersion=2.4.3 && ./gradlew ciPerformRelease -PsparkVersion=2.3.0

dist: trusty
4 changes: 2 additions & 2 deletions isolation-forest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ println "Spark version: " + sparkVersion
dependencies {
compile("com.chuusai:shapeless_2.11:2.3.2")
if(VersionNumber.parse(sparkVersion) >= VersionNumber.parse("2.4.0")) {
compile("org.apache.spark:spark-avro_2.11:2.4.0")
compile("org.apache.spark:spark-avro_2.11:" + sparkVersion)
} else {
compile("com.databricks:spark-avro_2.11:4.0.0")
}
Expand All @@ -27,4 +27,4 @@ test {
useTestNG()
}

archivesBaseName = "${project.name}_2.11"
archivesBaseName = "${project.name}_${sparkVersion}_2.11"

0 comments on commit e5f12bb

Please sign in to comment.