Skip to content

Commit

Permalink
Fix compatibility of QA tests with SQ 6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Brandhof committed Sep 17, 2019
1 parent 7e6429f commit 19cc105
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions its/src/test/java/com/sonar/maven/it/suite/MavenTestSuite.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,16 @@ public class MavenTestSuite {
@ClassRule
public static final Orchestrator ORCHESTRATOR = Orchestrator.builderEnv()
.setSonarVersion(getSonarVersion())
.addPlugin(MavenLocation.of("org.sonarsource.java", "sonar-java-plugin", "LATEST_RELEASE"))
.addPlugin(MavenLocation.of("org.sonarsource.javascript", "sonar-javascript-plugin", "LATEST_RELEASE"))
.addPlugin(MavenLocation.of("org.sonarsource.python", "sonar-python-plugin", "LATEST_RELEASE"))
.addPlugin(MavenLocation.of("org.sonarsource.html", "sonar-html-plugin", "LATEST_RELEASE"))
.addPlugin(MavenLocation.of("org.sonarsource.xml", "sonar-xml-plugin", "LATEST_RELEASE"))

// The scanner for maven 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.java", "sonar-java-plugin", "5.14.0.18788"))
.addPlugin(MavenLocation.of("org.sonarsource.javascript", "sonar-javascript-plugin", "5.2.1.7778"))
.addPlugin(MavenLocation.of("org.sonarsource.python", "sonar-python-plugin", "1.12.0.2726"))
.addPlugin(MavenLocation.of("org.sonarsource.html", "sonar-html-plugin", "3.2.0.2082"))
.addPlugin(MavenLocation.of("org.sonarsource.xml", "sonar-xml-plugin", "2.0.1.2020"))
.build();

private static String getSonarVersion() {
Expand Down

0 comments on commit 19cc105

Please sign in to comment.