Repository: jhipster/jhipster-lite
Pull request #12712 (2025-06-03 19:22:54)

Fix: Update Sonarqube (Gradle: add verification-metadata.xml)
Fix #12710 

![image](https://github.com/user-attachments/assets/5d46132c-3229-4f0b-b097-df532d3ab543)



Patch:
diff --git a/src/main/docker/sonar.yml b/src/main/docker/sonar.yml
index 79a082111..e97dbfa4a 100644
--- a/src/main/docker/sonar.yml
+++ b/src/main/docker/sonar.yml
@@ -1,7 +1,7 @@
 # This configuration is intended for development purpose, it's **your** responsibility to harden it for production
 services:
   sonar:
-    image: sonarqube:25.5.0.107428-community
+    image: sonarqube:25.6.0.109173-community
     container_name: sonar
     # Authentication is turned off for out of the box experience while trying out SonarQube
     # For real use cases delete sonar.forceAuthentication variable or set sonar.forceAuthentication=true
diff --git a/src/main/java/tech/jhipster/lite/generator/buildtool/gradle/domain/GradleModuleFactory.java b/src/main/java/tech/jhipster/lite/generator/buildtool/gradle/domain/GradleModuleFactory.java
index 87b638c99..f63056fb2 100644
--- a/src/main/java/tech/jhipster/lite/generator/buildtool/gradle/domain/GradleModuleFactory.java
+++ b/src/main/java/tech/jhipster/lite/generator/buildtool/gradle/domain/GradleModuleFactory.java
@@ -35,10 +35,12 @@ public class GradleModuleFactory {
         .batch(SOURCE, to("."))
           .addTemplate("build.gradle.kts")
           .addTemplate("settings.gradle.kts")
+          .addTemplate("gradle.properties")
           .and()
         .batch(SOURCE.append("gradle"), to("gradle"))
           .addFile("libs.versions.toml")
-          .and()
+          .addTemplate("verification-metadata.xml")
+      .and()
         .and()
       .javaDependencies()
         .addDependency(junitEngineDependency())
diff --git a/src/main/resources/generator/buildtool/gradle/gradle.properties.mustache b/src/main/resources/generator/buildtool/gradle/gradle.properties.mustache
new file mode 100644
index 000000000..bed471da8
--- /dev/null
+++ b/src/main/resources/generator/buildtool/gradle/gradle.properties.mustache
@@ -0,0 +1,1 @@
+org.gradle.dependency.verification=off
diff --git a/src/main/resources/generator/buildtool/gradle/gradle/verification-metadata.xml.mustache b/src/main/resources/generator/buildtool/gradle/gradle/verification-metadata.xml.mustache
new file mode 100644
index 000000000..faa9068c6
--- /dev/null
+++ b/src/main/resources/generator/buildtool/gradle/gradle/verification-metadata.xml.mustache
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<verification-metadata xmlns="https://schema.gradle.org/dependency-verification"
+                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+                       xsi:schemaLocation="https://schema.gradle.org/dependency-verification https://schema.gradle.org/dependency-verification/dependency-verification-1.3.xsd">
+  <configuration>
+    <verify-metadata>false</verify-metadata>
+    <verify-signatures>false</verify-signatures>
+  </configuration>
+</verification-metadata>
diff --git a/src/main/resources/generator/dependencies/Dockerfile b/src/main/resources/generator/dependencies/Dockerfile
index 43086f903..3944d6707 100644
--- a/src/main/resources/generator/dependencies/Dockerfile
+++ b/src/main/resources/generator/dependencies/Dockerfile
@@ -1,10 +1,10 @@
-FROM sonarqube:25.4.0.105899-community
+FROM sonarqube:25.6.0.109173-community
 FROM consul:1.15.4
 FROM jhipster/consul-config-loader:v0.4.1
 FROM jhipster/jhipster-registry:v7.4.0
 FROM quay.io/keycloak/keycloak:26.2.5
 FROM mariadb:11.7.2
-FROM mongo:8.0.10
+FROM mongo:8.0.9
 FROM mysql:9.2.0
 FROM cassandra:5.0.4
 FROM mcr.microsoft.com/mssql/server:2025-latest


Test patch:
diff --git a/src/test/java/tech/jhipster/lite/generator/buildtool/gradle/domain/GradleModuleFactoryTest.java b/src/test/java/tech/jhipster/lite/generator/buildtool/gradle/domain/GradleModuleFactoryTest.java
index b5584c977..f1e682d09 100644
--- a/src/test/java/tech/jhipster/lite/generator/buildtool/gradle/domain/GradleModuleFactoryTest.java
+++ b/src/test/java/tech/jhipster/lite/generator/buildtool/gradle/domain/GradleModuleFactoryTest.java
@@ -46,6 +46,10 @@ class GradleModuleFactoryTest {
       .hasFile("settings.gradle.kts")
       .containing("my-app")
       .and()
+      .hasFile("gradle.properties")
+      .and()
+      .hasFile("gradle/verification-metadata.xml")
+      .and()
       .hasFile("gradle/libs.versions.toml")
       .containing("junit-jupiter = \"")
       .containing("assertj = \"")