Skip to content

Commit

Permalink
SLCORE-267 Update to Sonar Plugin API 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
henryju committed Mar 27, 2020
1 parent 573f510 commit ded0334
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

public class PluginCacheLoader {

private static final String IMPLEMENTED_SQ_API = "8.1";
private static final String IMPLEMENTED_SQ_API = "8.2";

private static final Logger LOG = Loggers.get(PluginCacheLoader.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
import org.sonar.api.utils.MessageException;
import org.sonar.api.utils.ZipUtils;
import org.sonar.api.utils.log.LogTesterJUnit5;
import org.sonarsource.sonarlint.core.client.api.connected.ConnectedGlobalConfiguration;
import org.sonarsource.sonarlint.core.client.api.common.Language;
import org.sonarsource.sonarlint.core.client.api.connected.ConnectedGlobalConfiguration;
import org.sonarsource.sonarlint.core.client.api.exceptions.StorageException;
import org.sonarsource.sonarlint.core.container.connected.validate.PluginVersionChecker;
import org.sonarsource.sonarlint.core.plugin.PluginIndex.PluginReference;
Expand Down Expand Up @@ -134,7 +134,7 @@ public void load_plugin_skip_unsupported_plugins_api_version(@TempDir Path stora
when(pluginVersionChecker.getMinimumVersion(FAKE_PLUGIN_KEY)).thenReturn("2.0");

assertThat(underTest.load()).hasSize(0);
assertThat(logsWithoutStartStop()).contains("Code analyzer 'pluginkey' needs plugin API 99.9 while SonarLint supports only up to 8.1. Skip loading it.");
assertThat(logsWithoutStartStop()).contains("Code analyzer 'pluginkey' needs plugin API 99.9 while SonarLint supports only up to 8.2. Skip loading it.");
}

@Test
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

<properties>
<!-- Don't forget to also update PluginCacheLoader::IMPLEMENTED_SQ_API -->
<sonarqube.version>8.1.0.31237</sonarqube.version>
<sonarqube.version>8.2.0.32929</sonarqube.version>
<sonar-ws.version>6.7</sonar-ws.version>
<sonar-scanner-protocol.version>6.7</sonar-scanner-protocol.version>
<grpc.version>1.22.0</grpc.version>
Expand Down

0 comments on commit ded0334

Please sign in to comment.