Skip to content

Commit

Permalink
Merge pull request #7457 from eed3si9n/wip/1.9.8
Browse files Browse the repository at this point in the history
Update IO to 1.9.8 + some backports
  • Loading branch information
eed3si9n committed Dec 13, 2023
2 parents edc1029 + 7762dd2 commit 1b31fa7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions internal/util-logging/src/main/scala/sbt/util/Logger.scala
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@ abstract class Logger extends xLogger {
def success(message: => String): Unit
def log(level: Level.Value, message: => String): Unit

def verbose(msg: Supplier[String]): Unit = debug(msg)
def debug(msg: Supplier[String]): Unit = log(Level.Debug, msg)
def warn(msg: Supplier[String]): Unit = log(Level.Warn, msg)
def info(msg: Supplier[String]): Unit = log(Level.Info, msg)
def error(msg: Supplier[String]): Unit = log(Level.Error, msg)
def trace(msg: Supplier[Throwable]): Unit = trace(msg.get())
def success(msg: Supplier[String]): Unit = success(msg.get())
def log(level: Level.Value, msg: Supplier[String]): Unit = log(level, msg.get)
}

Expand Down
6 changes: 5 additions & 1 deletion main/src/main/scala/sbt/internal/LibraryManagement.scala
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,11 @@ private[sbt] object LibraryManagement {
import config.{ updateConfiguration => c, module => mod }
import mod.{ id, dependencies => deps, scalaModuleInfo }
val base = restrictedCopy(id, true).withName(id.name + "$" + label)
val module = lm.moduleDescriptor(base, deps, scalaModuleInfo)
val moduleSettings = ModuleDescriptorConfiguration(base, ModuleInfo(base.name))
.withScalaModuleInfo(scalaModuleInfo)
.withDependencies(deps)
.withConfigurations(mod.configurations)
val module = lm.moduleDescriptor(moduleSettings)
val report = lm.update(module, c, uwconfig, log) match {
case Right(r) => r
case Left(w) =>
Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ object Dependencies {
sys.env.get("BUILD_VERSION") orElse sys.props.get("sbt.build.version")

// sbt modules
private val ioVersion = nightlyVersion.getOrElse("1.9.7")
private val ioVersion = nightlyVersion.getOrElse("1.9.8")
private val lmVersion =
sys.props.get("sbt.build.lm.version").orElse(nightlyVersion).getOrElse("1.9.3")
val zincVersion = nightlyVersion.getOrElse("1.9.5")
Expand Down

0 comments on commit 1b31fa7

Please sign in to comment.