Skip to content

Commit

Permalink
#193 Fix sbt publish tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed May 10, 2017
1 parent d791bd5 commit 93d7845
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ linuxPackageMappings ~= { _.map { pm =>
packageBin := {
(packageBin in Universal).value
(packageBin in Debian).value
//(packageBin in Rpm).value
(packageBin in Rpm).value
}
// DEB //
debianPackageRecommends := Seq("elasticsearch")
Expand Down
11 changes: 6 additions & 5 deletions project/Bintray.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import java.io.File
import bintray.BintrayCredentials
import bintray.BintrayKeys.{bintrayEnsureCredentials, bintrayOrganization, bintrayPackage, bintrayRepository}
import bintry.Client
import com.typesafe.sbt.packager.Keys._
import com.typesafe.sbt.packager.debian.DebianPlugin.autoImport.Debian
import com.typesafe.sbt.packager.rpm.RpmPlugin.autoImport.Rpm
import com.typesafe.sbt.packager.universal.UniversalPlugin.autoImport.Universal
Expand All @@ -21,7 +22,7 @@ object PublishToBinTray extends Plugin {
val publishRpm = taskKey[Unit]("publish rpm package in Bintray")

override def settings = Seq(
publishRelease := {
publishRelease in ThisBuild := {
val file = (packageBin in Universal).value
btPublish(file.getName,
file,
Expand All @@ -32,7 +33,7 @@ object PublishToBinTray extends Plugin {
version.value,
sLog.value)
},
publishLatest := {
publishLatest in ThisBuild := {
val file = (packageBin in Universal).value
val latestName = file.getName.replace(version.value, "latest")
if (latestName == file.getName)
Expand All @@ -53,8 +54,8 @@ object PublishToBinTray extends Plugin {
sLog.value)
}
},
publishDebian := {
val file = (packageBin in Debian).value
publishDebian in ThisBuild := {
val file = (debianSign in Debian).value
btPublish(file.getName,
file,
bintrayEnsureCredentials.value,
Expand All @@ -68,7 +69,7 @@ object PublishToBinTray extends Plugin {
"deb_architecture" -> "all"
)
},
publishRpm := {
publishRpm in ThisBuild := {
val file = (packageBin in Rpm).value
btPublish(file.getName,
file,
Expand Down

0 comments on commit 93d7845

Please sign in to comment.