Skip to content

Commit

Permalink
Update custom plugin example pom_SQ_9_9_LTS.xml to fix the build (#4529)
Browse files Browse the repository at this point in the history
  • Loading branch information
erwan-serandour authored Nov 9, 2023
1 parent 9b5bf3f commit d128778
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/CUSTOM_RULES_101.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ For instance, SonarQube `8.9` (previous LTS) is shipped with version `6.15.1.260

```xml
<properties>
<sonarqube.version>9.9.0.229</sonarqube.version>
<sonar.plugin.api.version>9.14.0.375</sonar.plugin.api.version>
<sonarjava.version>7.16.0.30901</sonarjava.version>
<!-- [...] -->
</properties>
Expand Down Expand Up @@ -102,7 +102,7 @@ The property `<sonarQubeMinVersion>` also guarantees compatibility with the Sona
<pluginName>Java Custom Rules</pluginName>
<pluginClass>org.sonar.samples.java.MyJavaRulesPlugin</pluginClass>
<sonarLintSupported>true</sonarLintSupported>
<sonarQubeMinVersion>${sonarqube.version}</sonarQubeMinVersion>
<sonarQubeMinVersion>8.9</sonarQubeMinVersion>
<requirePlugins>java:${sonarjava.version}</requirePlugins>
</configuration>
</plugin>
Expand Down
13 changes: 10 additions & 3 deletions docs/java-custom-rules-example/pom_SQ_9_9_LTS.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<description>Java Custom Rules Example for SonarQube</description>

<properties>
<sonarqube.version>9.9.0.229</sonarqube.version>
<sonarjava.version>7.16.0.30901</sonarjava.version>
<sonar.plugin.api.version>9.14.0.375</sonar.plugin.api.version>
<sonarjava.version>7.28.0.33738</sonarjava.version>
<!-- Don't forget to update this version of JaCoCo -->
<jacoco.version>0.8.10</jacoco.version>
<!-- Use UTF-8 for all resources -->
Expand All @@ -34,7 +34,14 @@
<dependency>
<groupId>org.sonarsource.api.plugin</groupId>
<artifactId>sonar-plugin-api</artifactId>
<version>${sonarqube.version}</version>
<version>${sonar.plugin.api.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.30</version>
<scope>provided</scope>
</dependency>

Expand Down

0 comments on commit d128778

Please sign in to comment.