mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-02-01 20:10:35 +01:00
Update build.gradle
This commit is contained in:
parent
c46a21ce88
commit
d033d8b4ce
24
build.gradle
24
build.gradle
@ -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()]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user