Simple Fix for Native Image Rebuild (#1989)

This commit is contained in:
Radosław Waśko 2021-09-08 22:59:04 +02:00 committed by GitHub
parent ab8b2a2d4a
commit d1882580fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,6 +156,10 @@ object NativeImage {
streams.value.log.info( streams.value.log.info(
s"$reason, forcing a rebuild." s"$reason, forcing a rebuild."
) )
val artifact = artifactFile(artifactName)
if (artifact.exists()) {
artifact.delete()
}
Def.task { Def.task {
actualBuild.value actualBuild.value
} }