Skip to content

Commit

Permalink
Make scripted test run at Scala 2.13 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Friendseeker committed Dec 3, 2023
1 parent 22a5d30 commit 71acb8d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,12 @@ class IncHandler(directory: Path, cacheDir: Path, scriptedLog: ManagedLogger, co

def initBuildStructure(): Unit = {
val build = initBuild
val defaultScalaVersion = "2.13.12"
build.projects.foreach { p =>
val in: Path = p.in.getOrElse(directory / p.name)
val version = p.scalaVersion.getOrElse(scala.util.Properties.versionNumberString)
// TODO: when zinc-scripted builds at Scala 2.13 by default, instead
// uses scala.util.Properties.versionNumberString and remove defaultScalaVersion
val version = p.scalaVersion.getOrElse(defaultScalaVersion)
val deps = p.dependsOn.toVector.flatten
val project = ProjectStructure(
p.name,
Expand Down

0 comments on commit 71acb8d

Please sign in to comment.