These are chat archives for sbt/sbt

22nd
Apr 2017
Anthony Holland
@aholland
Apr 22 19:04
Does sbt yet have a clear or cls, i.e. an equivalent of exit, cls, sbt that doesn't involve restarting sbt ?
ritschwumm
@ritschwumm
Apr 22 19:40
i don't think so - is that even possible in a portable way?
this sounds like - for windows - you could make a command doing that: http://stackoverflow.com/questions/2979383/java-clear-the-console/33379766
ritschwumm
@ritschwumm
Apr 22 19:47
@rbellamy gitter does that all the time to me.. i'd call it a bug.
Anthony Holland
@aholland
Apr 22 19:56
Ha, I'll have a go at that and let you know, thanks @ritschwumm
Andrew Gaydenko
@gaydenko
Apr 22 22:40

Hi! What is not-deprecated (in 0.13.15) equivalent of

    compile in Compile <<= (compile in Compile) dependsOn (fastOptJS in Compile in client),

?

Brian Topping
@briantopping
Apr 22 23:27
Hmm. I see what I am doing wrong here with the call to value here, but I don't understand how to get around it:
  lazy val featureFile: SettingKey[File] = SettingKey[File]("features")

  lazy val osgiKeys: Seq[Setting[_]] = if (featureFile.value.exists()) {
    Seq(
      Keys.artifact in(Compile, Keys.packageBin) ~= (_.copy(`type` = "jar")),
      OsgiKeys.exportPackage := Seq(s"${packageName.value}.*"),
      OsgiKeys.privatePackage := Seq.empty
    ) ++ addArtifact(Def.setting(Artifact(moduleName.value, "xml", "xml", "feature")), Def.task(featureFile.map(identity).value))
  } else Nil
I'm using Seq[Setting[_]] for the value type since I need to append it to the projectSettings of a plugin
does osgiKeys need to be a task that depends on featureFile?