Merge pull request #446 from eed3si9n/wip/bump-util

deps: bump util
This commit is contained in:
eugene yokota 2024-10-04 00:22:57 -04:00 committed by GitHub
commit cb24883c15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 4 deletions

View File

@ -35,4 +35,4 @@ jobs:
if: ${{ matrix.jobtype == 1 }}
shell: bash
run: |
sbt -v -Dfile.encoding=UTF8 scalafmtCheckAll +test +packagedArtifacts
sbt -v -Dfile.encoding=UTF8 scalafmtCheckAll compile lmCore/test +packagedArtifacts

View File

@ -271,7 +271,7 @@ lazy val lmCore = (project in file("core"))
exclude[DirectMissingMethodProblem]("sbt.librarymanagement.ScalaArtifacts.toolDependencies*"),
),
)
.configure(addSbtIO, addSbtUtilLogging, addSbtUtilPosition, addSbtUtilCache)
.configure(addSbtIO, addSbtUtilLogging, addSbtUtilPosition, addSbtUtilCache, addSbtCompilerInterface)
lazy val lmIvy = (project in file("ivy"))
// .enablePlugins(ContrabandPlugin, JsonCodecPlugin)

View File

@ -11,13 +11,16 @@ object Dependencies {
sys.env.get("BUILD_VERSION") orElse sys.props.get("sbt.build.version")
private val ioVersion = nightlyVersion.getOrElse("1.10.0")
private val utilVersion = nightlyVersion.getOrElse("2.0.0-alpha10")
private val utilVersion = nightlyVersion.getOrElse("2.0.0-M1")
private val zincVersion = nightlyVersion.getOrElse("2.0.0-M1")
private val sbtIO = "org.scala-sbt" %% "io" % ioVersion
private val utilPosition = "org.scala-sbt" %% "util-position" % utilVersion
private val utilLogging = "org.scala-sbt" %% "util-logging" % utilVersion
private val utilCache = "org.scala-sbt" %% "util-cache" % utilVersion
private val utilCache = ("org.scala-sbt" %% "util-cache" % utilVersion)
.exclude("org.scala-sbt", "compiler-interface")
private val compilerInterface = ("org.scala-sbt" % "compiler-interface" % zincVersion).force()
def getSbtModulePath(key: String, name: String) = {
val localProps = new java.util.Properties()
@ -29,6 +32,7 @@ object Dependencies {
lazy val sbtIoPath = getSbtModulePath("sbtio.path", "sbt/io")
lazy val sbtUtilPath = getSbtModulePath("sbtutil.path", "sbt/util")
lazy val sbtZincPath = getSbtModulePath("sbtzinc.path", "sbt/zinc")
def addSbtModule(p: Project, path: Option[String], projectName: String, m: ModuleID) =
path match {
@ -42,6 +46,8 @@ object Dependencies {
def addSbtUtilLogging(p: Project): Project =
addSbtModule(p, sbtUtilPath, "utilLogging", utilLogging)
def addSbtUtilCache(p: Project): Project = addSbtModule(p, sbtUtilPath, "utilCache", utilCache)
def addSbtCompilerInterface(p: Project) =
addSbtModule(p, sbtZincPath, "compilerInterface", compilerInterface)
val launcherInterface = "org.scala-sbt" % "launcher-interface" % "1.0.0"
val ivy = "org.scala-sbt.ivy" % "ivy" % "2.3.0-sbt-396a783bba347016e7fe30dacc60d355be607fe2"