Skip to content

Commit

Permalink
Update VerifyJDK9Classes.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Jan 29, 2025
1 parent 5b888e0 commit 36a6434
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions project/VerifyJDK9Classes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ object VerifyJDK9Classes {

def generateAndWriteScalaCLIScript(dir: SettingKey[File]): Def.Initialize[Task[Seq[sbt.File]]] =
Def.task[Seq[File]] {
val binaryVersion = scalaBinaryVersion.value
val script = generateScalaCLIScript(version.value, binaryVersion)
val file = dir.value / "scala-cli" / s"VerifyJDK9Classes-${binaryVersion}.sc"
val scalaVer = scalaVersion.value
val script = generateScalaCLIScript(version.value, scalaVer)
val file = dir.value / "scala-cli" / s"VerifyJDK9Classes-${scalaVer}.sc"
val content = script.stripMargin.format(version.value)
if (!file.exists || IO.read(file) != content) IO.write(file, content)
// the generated file is not used.
Expand Down

0 comments on commit 36a6434

Please sign in to comment.