mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-03-04 02:20:19 +01:00
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:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user