Ensure sonar-resolver directory exists on clean

Adds a doLast action to the 'clean' task to create the 'sonar-resolver' directory under buildDir if it does not exist. This helps prevent issues with tools expecting the directory to be present after cleaning.
This commit is contained in:
Ludy87
2025-10-24 21:29:38 +02:00
parent 3023bb80ac
commit c46a21ce88

View File

@@ -178,6 +178,15 @@ subprojects {
dependsOn(rootProject.tasks.writeVersion)
}
tasks.named("clean") {
doLast {
File sonarDir = new File(buildDir, "sonar-resolver")
if (!sonarDir.exists()) {
sonarDir.mkdirs()
}
}
}
if (name == 'stirling-pdf') {
apply plugin: 'org.springdoc.openapi-gradle-plugin'