Merge pull request #5765 from eed3si9n/wip/progress

Banner for 1.4.0 beta
This commit is contained in:
eugene yokota 2020-08-16 18:02:33 -04:00 committed by GitHub
commit 9d60267de2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -15,7 +15,8 @@ import sbt.internal.util.ConsoleAppender.{
ClearScreenAfterCursor,
CursorLeft1000,
DeleteLine,
cursorUp
cursorUp,
setShowProgress,
}
import scala.collection.mutable.ArrayBuffer
@ -160,6 +161,7 @@ private[sbt] object ProgressState {
val isWatch = terminal.prompt == Prompt.Watch
val noPrompt = terminal.prompt == Prompt.NoPrompt
if (terminal.isSupershellEnabled) {
setShowProgress(true) // used by Zinc to not show "done compiling"
if (!pe.skipIfActive.getOrElse(false) || (!isRunning && !isBatch)) {
terminal.withPrintStream { ps =>
val commandFromThisTerminal = pe.channelName.fold(true)(_ == terminal.name)

View File

@ -10,6 +10,16 @@ package sbt.internal
private[sbt] object Banner {
def apply(version: String): Option[String] =
version match {
case v if v.startsWith("1.4.0") =>
Some(s"""
|Here are some highlights of this release:
| - Build server protocol (BSP) support
| - sbtn: a native thin client for sbt
| - VirtualFile + RemoteCache: caches build artifacts across different machines
| - Incremental build pipelining. Try it using `ThisBuild / usePipelining := true`.
|See http://eed3si9n.com/sbt-1.4.0-beta for full release notes.
|Hide the banner for this release by running `skipBanner`.
|""".stripMargin.linesIterator.mkString("\n"))
case "1.3.0" =>
Some(s"""
|Welcome to sbt $version.