From 95db5dcb016b6c68122e3fb2018a2f6e3f11fe11 Mon Sep 17 00:00:00 2001 From: Nepomuk Seiler Date: Mon, 31 Oct 2016 21:30:39 +0100 Subject: [PATCH] Fix package name --- build.sbt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/build.sbt b/build.sbt index 606862696..0e92dbc20 100644 --- a/build.sbt +++ b/build.sbt @@ -7,7 +7,7 @@ lazy val sbtVersionToRelease = sys.props.getOrElse("sbt.build.version", sys.env. })) lazy val isExperimental = (sbtVersionToRelease contains "RC") || (sbtVersionToRelease contains "M") val sbtLaunchJarUrl = SettingKey[String]("sbt-launch-jar-url") -val sbtLaunchJarLocation = SettingKey[File]("sbt-launch-jar-location") +val sbtLaunchJarLocation = SettingKey[File]("sbt-launch-jar-location") val sbtLaunchJar = TaskKey[File]("sbt-launch-jar", "Resolves SBT launch jar") val moduleID = (organization) apply { (o) => ModuleID(o, "sbt", sbtVersionToRelease) } @@ -27,6 +27,7 @@ val root = (project in file(".")). settings( organization := "org.scala-sbt", name := "sbt-launcher-packaging", + packageName := "sbt", version := "0.1.0", crossTarget <<= target, deploymentSettings, @@ -59,7 +60,6 @@ val root = (project in file(".")). } yield link }, // DEBIAN SPECIFIC - name in Debian := "sbt", version in Debian := sbtVersionToRelease, debianPackageDependencies in Debian ++= Seq("java6-runtime-headless", "bash (>= 2.05a-11)"), debianPackageRecommends in Debian += "git", @@ -71,7 +71,6 @@ val root = (project in file(".")). debianChangelog in Debian := Some(file("debian/changelog")), // RPM SPECIFIC - name in Rpm := "sbt", version in Rpm := { val stable = (sbtVersionToRelease split "[^\\d]" filterNot (_.isEmpty) mkString ".") if (isExperimental) ((sbtVersionToRelease split "[^\\d]" filterNot (_.isEmpty)).toList match { @@ -87,7 +86,6 @@ val root = (project in file(".")). rpmProvides := Seq("sbt"), // WINDOWS SPECIFIC - name in Windows := "sbt", windowsBuildId := 1, version in Windows <<= (windowsBuildId) apply { (bid) => val sv = sbtVersionToRelease @@ -105,7 +103,7 @@ val root = (project in file(".")). javacOptions := Seq("-source", "1.5", "-target", "1.5"), // Universal ZIP download install. - name in Universal := "sbt", + packageName in Universal := packageName.value, // needs to be set explicitly due to a bug in native-packager version in Universal := sbtVersionToRelease, mappings in Universal <+= sbtLaunchJar map { _ -> "bin/sbt-launch.jar" }, @@ -171,4 +169,3 @@ def publishToSettings = def bintrayRelease(repo: BintrayRepo, pkg: String, version: String, log: Logger): Unit = repo.release(pkg, version, log) -