diff --git a/project/Build.scala b/project/Build.scala index abe8f52deb52..1851ba2a3a29 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -275,7 +275,11 @@ object Build { resourceGenerators in Compile += Def.task { val file = (resourceManaged in Compile).value / "compiler.properties" val contents = s"version.number=${version.value}" - IO.write(file, contents) + + if (!(file.exists && IO.read(file) == contents)) { + IO.write(file, contents) + } + Seq(file) }.taskValue,