You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Play2.7 and sbt-version 1.2.8, had included sbt-release plugin. On refreshing the project, we get an error, missing parameter type: ver => Version(ver)
build.sbt has the following
lazyvalroot= (project in file(".")).enablePlugins(PlayScala, BuildInfoPlugin, GitVersioning, GitBranchPrompt)
//build info
buildInfoKeys :=Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion)
buildInfoPackage :="eu.byjean"//git
showCurrentGitBranch
git.useGitDescribe :=true
git.baseVersion :="0.0.0"valVersionRegex="v([0-9]+.[0-9]+.[0-9]+)-?(.*)?".r
git.gitTagToVersionNumber := {
caseVersionRegex(v,"SNAPSHOT") =>Some(s"$v-SNAPSHOT")
caseVersionRegex(v,"") =>Some(v)
caseVersionRegex(v,s) =>Some(s"$v-$s-SNAPSHOT")
case v =>None
}
// sbt native packager
publishTo :=Some("temp" at "file:///tmp/repository")
makeDeploymentSettings(Universal, packageBin in Universal, "zip")
// sbt releasedefsetVersionOnly(selectVersion: Versions=>String):ReleaseStep= { st: State=>valvs= st.get(ReleaseKeys.versions).getOrElse(sys.error("No versions are set! Was this release part executed before inquireVersions?"))
valselected= selectVersion(vs)
st.log.info("Setting version to '%s'." format selected)
valuseGlobal=Project.extract(st).get(releaseUseGlobalVersion)
valversionStr= (if (useGlobal) globalVersionString else versionString) format selected
reapply(Seq(
if (useGlobal) version in ThisBuild:= selected
else version := selected
), st)
}
lazyvalsetReleaseVersion:ReleaseStep= setVersionOnly(_._1)
// strip the qualifier off the input version, eg. 1.2.1-SNAPSHOT -> 1.2.1//releaseVersion := { ver => Version(ver).map(_.withoutQualifier.string).getOrElse(versionFormatError(_)) }
releaseVersion <<= (releaseVersionBump)( bumper=>{
ver =>Version(ver)
.map(_.withoutQualifier)
.map(_.bump(bumper.value).string).getOrElse(versionFormatError(_))
})
valshowNextVersion= settingKey[String]("the future version once releaseNextVersion has been applied to it")
valshowReleaseVersion= settingKey[String]("the future version once releaseNextVersion has been applied to it")
showReleaseVersion := (version, releaseVersion)((v,f)=>f(v))
showNextVersion := (version, releaseNextVersion)((v,f)=>f(v))
releaseProcess :=Seq(
checkSnapshotDependencies,
inquireVersions,
setReleaseVersion,
runTest,
tagRelease,
// publishArtifacts,ReleaseStep(releaseStepTask(publish in Universal))
)
Help appreciated.
mdsabz
The text was updated successfully, but these errors were encountered:
Hi,
With Play2.7 and sbt-version 1.2.8, had included sbt-release plugin. On refreshing the project, we get an error, missing parameter type: ver => Version(ver)
build.sbt has the following
Help appreciated.
mdsabz
The text was updated successfully, but these errors were encountered: