Skip to content

Commit f1c3529

Browse files
authored
Merge pull request #2306 from dotty-staging/fix/packageBin
Only recreate dotty-compiler jar if it changed
2 parents 01e172b + bf5ad82 commit f1c3529

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

project/Build.scala

+5-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,11 @@ object Build {
275275
resourceGenerators in Compile += Def.task {
276276
val file = (resourceManaged in Compile).value / "compiler.properties"
277277
val contents = s"version.number=${version.value}"
278-
IO.write(file, contents)
278+
279+
if (!(file.exists && IO.read(file) == contents)) {
280+
IO.write(file, contents)
281+
}
282+
279283
Seq(file)
280284
}.taskValue,
281285

0 commit comments

Comments
 (0)