Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

fix(build): ensure `./gradlew clean` removes stale SaaS build artifacts (#7434)

Ludy2b6bb7118680
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'