Update build.gradle

This commit is contained in:
Ludy87
2025-10-24 21:43:02 +02:00
parent c46a21ce88
commit d033d8b4ce
+15 -9
View File
@@ -178,15 +178,6 @@ 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'
@@ -233,6 +224,21 @@ tasks.withType(JavaCompile).configureEach {
def allProjects = ((subprojects as Set<Project>) + project) as Set<Project>
def ensureSonarResolverDir = { Project proj ->
File sonarDir = new File(proj.buildDir, "sonar-resolver")
if (!sonarDir.exists()) {
sonarDir.mkdirs()
}
}
configure(allprojects) {
tasks.matching { it.name == "sonarResolver" }.configureEach {
doFirst {
ensureSonarResolverDir(project)
}
}
}
licenseReport {
projects = allProjects
renderers = [new JsonReportRenderer()]