Compare commits

...
Author SHA1 Message Date
Ludy87 eed1bdb896 Update sonarqube.yml 2025-10-24 21:47:33 +02:00
Ludy87 d033d8b4ce Update build.gradle 2025-10-24 21:43:02 +02:00
Ludy87 c46a21ce88 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.
2025-10-24 21:29:38 +02:00
Ludy87 3023bb80ac Update sonarqube.yml 2025-10-24 21:07:13 +02:00
Ludy87 7f6a9dbfb6 Update sonarqube.yml 2025-10-24 21:04:23 +02:00
Ludy87 2d54186b0c Update SonarQube workflow to use JDK 17 and Gradle 8.14
Added a step to set up JDK 17 using the temurin distribution and updated the Gradle setup to use version 8.14 in the SonarQube GitHub Actions workflow.
2025-10-24 21:02:06 +02:00
2 changed files with 24 additions and 0 deletions
+9
View File
@@ -22,6 +22,7 @@ concurrency:
cancel-in-progress: true
permissions:
contents: read
pull-requests: read
actions: read
@@ -38,8 +39,16 @@ jobs:
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
with:
java-version: "17"
distribution: "temurin"
- name: Setup Gradle
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
with:
gradle-version: 8.14
- name: Build and analyze with Gradle
env:
+15
View File
@@ -224,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()]