2014-05-01 18:50:07 +02:00
|
|
|
import sbt._
|
|
|
|
|
import Keys._
|
2014-07-31 01:52:59 +02:00
|
|
|
import com.typesafe.sbt.JavaVersionCheckPlugin.autoImport._
|
2015-04-20 07:20:23 +02:00
|
|
|
import _root_.bintray.BintrayPlugin.autoImport._
|
|
|
|
|
import _root_.bintray.InternalBintrayKeys._
|
2014-05-01 18:50:07 +02:00
|
|
|
|
2015-04-20 07:20:23 +02:00
|
|
|
object Release {
|
2014-05-01 18:50:07 +02:00
|
|
|
lazy val launcherRemotePath = SettingKey[String]("launcher-remote-path")
|
|
|
|
|
lazy val deployLauncher = TaskKey[Unit]("deploy-launcher", "Upload the launcher to its traditional location for compatibility with existing scripts.")
|
|
|
|
|
|
2015-02-06 20:35:32 +01:00
|
|
|
def launcherSettings(launcher: TaskKey[File]): Seq[Setting[_]] = Seq(
|
2015-04-20 07:20:23 +02:00
|
|
|
launcherRemotePath := s"${organization.value}/${moduleName.value}/${version.value}/${moduleName.value}.jar",
|
|
|
|
|
deployLauncher := {
|
|
|
|
|
val repo = bintrayRepo.value
|
|
|
|
|
repo.upload(bintrayPackage.value, version.value, launcherRemotePath.value, launcher.value, sLog.value)
|
2014-05-01 18:50:07 +02:00
|
|
|
}
|
2015-04-20 07:20:23 +02:00
|
|
|
)
|
2014-07-31 01:52:59 +02:00
|
|
|
|
|
|
|
|
def javaVersionCheckSettings = Seq(
|
|
|
|
|
javaVersionPrefix in javaVersionCheck := Some("1.6")
|
|
|
|
|
)
|
2011-07-09 22:54:41 +02:00
|
|
|
}
|