Skip to content

Commit

Permalink
Merge pull request datastax#1024 from datastax/FixPublishSigned
Browse files Browse the repository at this point in the history
Set PackagedArtifact instead of PackagedArtifacts
  • Loading branch information
pkolaczk authored Aug 31, 2016
2 parents 4717d21 + e94bdd9 commit fdb6c1e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions project/SparkCassandraConnectorBuild.scala
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,11 @@ object CassandraSparkBuild extends Build {
log.info(s"""Shaded jar moved to $expected""".stripMargin)
expected
},
packagedArtifact in packageBin in Compile := {
(artifact.value, (assembly in shadedConnector).value)
},
sbt.Keys.`package` := packageBin.value)
++ pureCassandraSettings
//Update the distribution tasks to use the shaded jar
++ {for (taskKey <- Seq(publishLocal in Compile, publish in Compile, publishM2 in Compile)) yield {
packagedArtifacts in taskKey := {
val previous = (packagedArtifacts in Compile).value
val shadedJar = (artifact.value.copy(configurations = Seq(Compile)) -> packageBin.value)
//Clobber the old build artifact with the shaded jar
previous + shadedJar
}
}}
).copy(dependencies = Seq(embedded % "test->test;it->it,test;")
) configs IntegrationTest

Expand Down

0 comments on commit fdb6c1e

Please sign in to comment.