Skip to content

Commit 146fb72

Browse files
Make guava test compatible with Java 17
1 parent a1ee83d commit 146fb72

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,10 @@ public void guava() throws Exception {
193193
String projectName = "guava";
194194
MavenBuild build = test_project("com.google.guava:guava", projectName);
195195
build
196-
// by default guava is compatible with java 6, however this is not supported with JDK 21
197-
.setProperty("java.version", "1.8")
196+
.setProperty("java.version", "17")
197+
.setProperty("maven-bundle-plugin.version", "5.1.4")
198198
.setProperty("maven.javadoc.skip", "true")
199+
.setProperty("animal.sniffer.skip", "true")
199200
// use batch
200201
.setProperty("sonar.java.experimental.batchModeSizeInKB", "8192");
201202
executeBuildWithCommonProperties(build, projectName);

0 commit comments

Comments
 (0)