From e95299e3b8ff2d9d2ba7569a12738818509f37b2 Mon Sep 17 00:00:00 2001 From: Tibor Blenessy Date: Tue, 20 Feb 2024 18:06:00 +0100 Subject: [PATCH] Use Java 17 --- .../sonar/javascript/it/plugin/SonarJsIntegrationTest.java | 3 ++- pom.xml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/its/plugin/tests/src/test/java/com/sonar/javascript/it/plugin/SonarJsIntegrationTest.java b/its/plugin/tests/src/test/java/com/sonar/javascript/it/plugin/SonarJsIntegrationTest.java index b0c83107c9e..643af0163cc 100644 --- a/its/plugin/tests/src/test/java/com/sonar/javascript/it/plugin/SonarJsIntegrationTest.java +++ b/its/plugin/tests/src/test/java/com/sonar/javascript/it/plugin/SonarJsIntegrationTest.java @@ -43,6 +43,7 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; +import java.util.Map; import java.util.zip.GZIPInputStream; import org.apache.commons.compress.archivers.ArchiveEntry; import org.apache.commons.compress.archivers.ArchiveInputStream; @@ -79,7 +80,7 @@ class SonarJsIntegrationTest { void test() throws Exception { String filename = "sonarjs-1.0.0.tgz"; Bridge bridge = new Bridge(); - try (FileSystem fileSystem = FileSystems.newFileSystem(pluginJar, null)) { + try (FileSystem fileSystem = FileSystems.newFileSystem(pluginJar, Map.of())) { Path fileToExtract = fileSystem.getPath(filename); extractArchive(fileToExtract, temp); bridge.start(temp); diff --git a/pom.xml b/pom.xml index adcf60c4474..843a0a3f562 100644 --- a/pom.xml +++ b/pom.xml @@ -98,8 +98,8 @@ ${project.groupId}:sonar-javascript-plugin:jar true - 11 - 11 + 17 + 17 3.1.2