Fixes the releasing

This commit is contained in:
Eugene Yokota 2015-06-09 17:20:03 +02:00
parent 5c6cd94fc3
commit 3d90d92dbd
2 changed files with 7 additions and 5 deletions

View File

@ -14,7 +14,10 @@ def buildLevelSettings: Seq[Setting[_]] = Seq(
version in ThisBuild := "0.13.9-SNAPSHOT",
// bintrayOrganization in ThisBuild := None,
// bintrayRepository in ThisBuild := "test-test-test",
bintrayOrganization in ThisBuild := Some("sbt"),
bintrayOrganization in ThisBuild := {
if ((publishStatus in ThisBuild).value == "releases") Some("typesafe")
else Some("sbt")
},
bintrayRepository in ThisBuild := s"ivy-${(publishStatus in ThisBuild).value}",
bintrayPackage in ThisBuild := "sbt",
bintrayReleaseOnPublish in ThisBuild := false
@ -487,8 +490,8 @@ def projectsWithMyProvided = allProjects.map(p => p.copy(configurations = (p.con
lazy val nonRoots = projectsWithMyProvided.map(p => LocalProject(p.id))
def rootSettings = fullDocSettings ++
Util.publishPomSettings ++ otherRootSettings ++ Formatting.sbtFilesSettings /*++
Transform.conscriptSettings(launchProj)*/
Util.publishPomSettings ++ otherRootSettings ++ Formatting.sbtFilesSettings ++
Transform.conscriptSettings(bundledLauncherProj)
def otherRootSettings = Seq(
Scripted.scriptedPrescripted := { _ => },
Scripted.scripted <<= scriptedTask,
@ -619,7 +622,6 @@ def customCommands: Seq[Setting[_]] = Seq(
*/
commands += Command.command("release-sbt") { state =>
// TODO - Any sort of validation
"checkCredentials" ::
"clean" ::
"allPrecompiled/clean" ::
"allPrecompiled/compile" ::

View File

@ -78,7 +78,7 @@ object CustomPomParser {
Option(extraInfo).isDefined &&
((Option(extraInfo get TransformedHashKey) orElse Option(extraInfo get oldTransformedHashKey)) match {
case Some(MyHash) => true
case _ => false
case _ => false
})
}