]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
Fix compatibility issue with JS plugin (#76)
authorJacek <52388493+jacek-poreda-sonarsource@users.noreply.github.com>
Thu, 3 Oct 2019 11:18:33 +0000 (13:18 +0200)
committerGitHub <noreply@github.com>
Thu, 3 Oct 2019 11:18:33 +0000 (13:18 +0200)
it/src/test/java/com/sonarsource/scanner/it/SonarScannerTestSuite.java

index 6e903036616b5c6df87727b1b30d02567184e023..4dd635fa8eff2fe823a2bbae5d939f1be9ce178f 100644 (file)
@@ -33,7 +33,11 @@ public class SonarScannerTestSuite {
   @ClassRule
   public static final Orchestrator ORCHESTRATOR = Orchestrator.builderEnv()
     .setSonarVersion(System.getProperty("sonar.runtimeVersion", "LATEST_RELEASE[6.7]"))
-    .addPlugin(MavenLocation.of("org.sonarsource.javascript", "sonar-javascript-plugin", "LATEST_RELEASE"))
+    // The scanner cli should still be compatible with previous LTS 6.7, and not the 7.9
+    // at the time of writing, so the installed plugins should be compatible with
+    // both 6.7 and 8.x. The latest releases of analysers drop the compatibility with
+    // 6.7, that's why versions are hardcoded here.
+    .addPlugin(MavenLocation.of("org.sonarsource.javascript", "sonar-javascript-plugin", "5.2.1.7778"))
     .build();
 
 }