diff --git a/build.gradle b/build.gradle index de0861d8fa..0d07b7ac2f 100644 --- a/build.gradle +++ b/build.gradle @@ -95,6 +95,12 @@ bootJar { enabled = false } +// :saas is only included for SaaS builds, but a default-flavor clean must still remove artifacts +// left behind by an earlier SaaS build. +tasks.named('clean') { + delete layout.projectDirectory.dir('app/saas/build') +} + // Configure main class for the root project springBoot { mainClass = 'stirling.software.SPDF.SPDFApplication'