Skip to content

Commit

Permalink
Tighten the used versions in cross-build (#42)
Browse files Browse the repository at this point in the history
Pull request: #42
  • Loading branch information
lefou authored Sep 23, 2023
1 parent 8b1cf29 commit 1c7b702
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,35 @@ trait Setup {
val millVersion: String
def scalaVersion = "2.13.12"
def testMillVersions: Seq[String]
def osLibVersion: String
}

object Setup {
object R010 extends Setup {
override val millPlatform = "0.10"
override val millVersion = "0.10.0"
override val millVersion = "0.10.0" // scala-steward:off
// we skip 0.10.4 tests, as these don't run under windows properly
override val testMillVersions = Seq("0.10.12", millVersion)
override val osLibVersion = "0.8.0" // scala-steward:off
}
object R09 extends Setup {
override val millPlatform = "0.9"
override val millVersion = "0.9.3"
override val millVersion = "0.9.3" // scala-steward:off
override val testMillVersions = Seq("0.9.12", millVersion)
override val osLibVersion = "0.7.1" // scala-steward:off
}
object R07 extends Setup {
override val millPlatform = "0.7"
override val millVersion = "0.7.0"
override val millVersion = "0.7.0" // scala-steward:off
override val testMillVersions = Seq("0.8.0", "0.7.3", millVersion)
override val osLibVersion = "0.7.0" // scala-steward:off
}
object R06 extends Setup {
override val millPlatform = "0.6"
override val millVersion = "0.6.0"
override val millVersion = "0.6.0" // scala-steward:off
override val scalaVersion = "2.12.18"
override val testMillVersions = Seq("0.6.3", "0.6.2", "0.6.1", "0.6.0")
override val osLibVersion = "0.6.3" // scala-steward:off
}
}

Expand All @@ -59,7 +64,7 @@ trait JbakeConfig extends CrossScalaModule with PublishModule {
override def compileIvyDeps = Agg(
ivy"com.lihaoyi::mill-main:${millVersion}",
ivy"com.lihaoyi::mill-scalalib:${millVersion}",
ivy"com.lihaoyi::os-lib:0.6.3"
ivy"com.lihaoyi::os-lib:${setup.osLibVersion}"
)
override def artifactName = T("de.tobiasroeser.mill.jbake")

Expand Down

0 comments on commit 1c7b702

Please sign in to comment.