mirror of https://github.com/sbt/sbt.git
Merge pull request #3814 from dwijnand/avoid-log4j2-error-warning
Make CaffeineCache a lazy val
This commit is contained in:
commit
487d94d856
|
|
@ -103,7 +103,7 @@ object StandardMain {
|
||||||
private[sbt] lazy val exchange = new CommandExchange()
|
private[sbt] lazy val exchange = new CommandExchange()
|
||||||
import scalacache._
|
import scalacache._
|
||||||
import scalacache.caffeine._
|
import scalacache.caffeine._
|
||||||
private[sbt] val cache: Cache[Any] = CaffeineCache[Any]
|
private[sbt] lazy val cache: Cache[Any] = CaffeineCache[Any]
|
||||||
|
|
||||||
def runManaged(s: State): xsbti.MainResult = {
|
def runManaged(s: State): xsbti.MainResult = {
|
||||||
val previous = TrapExit.installManager()
|
val previous = TrapExit.installManager()
|
||||||
|
|
@ -135,9 +135,6 @@ object StandardMain {
|
||||||
Exec(x, None)
|
Exec(x, None)
|
||||||
}
|
}
|
||||||
val initAttrs = BuiltinCommands.initialAttributes
|
val initAttrs = BuiltinCommands.initialAttributes
|
||||||
import scalacache.modes.scalaFuture._
|
|
||||||
import scala.concurrent.ExecutionContext.Implicits.global
|
|
||||||
cache.removeAll()
|
|
||||||
val s = State(
|
val s = State(
|
||||||
configuration,
|
configuration,
|
||||||
initialDefinitions,
|
initialDefinitions,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue