mirror of https://github.com/sbt/sbt.git
Merge pull request #4858 from eed3si9n/wip/thisbuild
scope the reference of useSuperShell to ThisBuild
This commit is contained in:
commit
2af6ad5713
|
|
@ -290,7 +290,7 @@ object Defaults extends BuildCommon {
|
||||||
turbo :== SysProp.turbo,
|
turbo :== SysProp.turbo,
|
||||||
useSuperShell := { if (insideCI.value) false else SysProp.supershell },
|
useSuperShell := { if (insideCI.value) false else SysProp.supershell },
|
||||||
progressReports := {
|
progressReports := {
|
||||||
val progress = useSuperShell.value
|
val progress = (ThisBuild / useSuperShell).value
|
||||||
val rs = EvaluateTask.taskTimingProgress.toVector ++
|
val rs = EvaluateTask.taskTimingProgress.toVector ++
|
||||||
EvaluateTask.taskTraceEvent.toVector ++ {
|
EvaluateTask.taskTraceEvent.toVector ++ {
|
||||||
if (progress) Vector(EvaluateTask.taskProgress)
|
if (progress) Vector(EvaluateTask.taskProgress)
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ import sbt.librarymanagement.ivy.{ Credentials => IvyCredentials }
|
||||||
import sbt.util.Logger
|
import sbt.util.Logger
|
||||||
import sbt.io.syntax._
|
import sbt.io.syntax._
|
||||||
import xsbti.AppConfiguration
|
import xsbti.AppConfiguration
|
||||||
|
import sbt.SlashSyntax0._
|
||||||
|
|
||||||
object LMCoursier {
|
object LMCoursier {
|
||||||
private[this] val credentialRegistry: ConcurrentHashMap[(String, String), IvyCredentials] =
|
private[this] val credentialRegistry: ConcurrentHashMap[(String, String), IvyCredentials] =
|
||||||
|
|
@ -180,7 +181,7 @@ object LMCoursier {
|
||||||
|
|
||||||
def coursierLoggerTask: Def.Initialize[Task[Option[CacheLogger]]] = Def.task {
|
def coursierLoggerTask: Def.Initialize[Task[Option[CacheLogger]]] = Def.task {
|
||||||
val st = Keys.streams.value
|
val st = Keys.streams.value
|
||||||
val progress = useSuperShell.value
|
val progress = (ThisBuild / useSuperShell).value
|
||||||
if (progress) None
|
if (progress) None
|
||||||
else Some(new CoursierLogger(st.log))
|
else Some(new CoursierLogger(st.log))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
|
ThisBuild / useSuperShell := false
|
||||||
val root = sbt.input.parser.Build.root
|
val root = sbt.input.parser.Build.root
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ import sbt.nio.Keys._
|
||||||
|
|
||||||
object Build {
|
object Build {
|
||||||
val root = (project in file(".")).settings(
|
val root = (project in file(".")).settings(
|
||||||
useSuperShell := false,
|
|
||||||
watchInputStream := inputStream,
|
watchInputStream := inputStream,
|
||||||
watchStartMessage := { (_, _, _) =>
|
watchStartMessage := { (_, _, _) =>
|
||||||
Build.outputStream.write('\n'.toByte)
|
Build.outputStream.write('\n'.toByte)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue