diff --git a/project/NativeImage.scala b/project/NativeImage.scala index e6bbbaa6999..2b457c5f660 100644 --- a/project/NativeImage.scala +++ b/project/NativeImage.scala @@ -156,6 +156,10 @@ object NativeImage { streams.value.log.info( s"$reason, forcing a rebuild." ) + val artifact = artifactFile(artifactName) + if (artifact.exists()) { + artifact.delete() + } Def.task { actualBuild.value }