Fix launcher publishing

This commit is contained in:
Eugene Yokota 2016-05-08 16:45:20 -04:00
parent 0144a47ce6
commit 638c290e62
1 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,10 @@ object Release {
lazy val deployLauncher = TaskKey[Unit]("deploy-launcher", "Upload the launcher to its traditional location for compatibility with existing scripts.")
def launcherSettings(launcher: TaskKey[File]): Seq[Setting[_]] = Seq(
launcherRemotePath := s"${organization.value}/${moduleName.value}/${version.value}/${moduleName.value}.jar",
launcherRemotePath := {
val organizationPath = organization.value.replaceAll("""\.""", "/")
s"$organizationPath/${moduleName.value}/${version.value}/${moduleName.value}.jar"
},
deployLauncher := {
val repo = bintrayRepo.value
repo.upload(bintrayPackage.value, version.value, launcherRemotePath.value, launcher.value, sLog.value)