Skip to content

Commit dd68ed0

Browse files
SONARJAVA-6661 Fix Guava ruling with SonarQube 2026.4 (#5827)
Co-authored-by: Dorian Burihabwa <75226315+dorian-burihabwa-sonarsource@users.noreply.github.com>
1 parent 48aca25 commit dd68ed0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

its/ruling/src/test/java/org/sonar/java/it/JavaRulingTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ public void guava() throws Exception {
205205
String projectName = "guava";
206206
MavenBuild build = test_project("com.google.guava:guava", projectName);
207207
build
208-
.setProperty("java.version", "17")
208+
// Keep compilation and analysis on Java 17 without overriding the Java runtime version seen by the scanner.
209+
.setProperty("sonar.java.source", "17")
209210
.setProperty("maven-bundle-plugin.version", "5.1.4")
210211
.setProperty("maven.javadoc.skip", "true")
211212
.setProperty("animal.sniffer.skip", "true")

0 commit comments

Comments
 (0)