Skip to content

Commit 08a732b

Browse files
[NO JIRA] Update targeted SQ and SonarJava plugin versions for CustomRules101 (#4841)
1 parent 95f1efb commit 08a732b

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/CUSTOM_RULES_101.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@ The root of a Maven project is a file named `pom.xml`.
4545

4646
In our case, we have two of them:
4747
* `pom.xml`: use a snapshot version of the Java Analyzer
48-
* `pom_SQ_9_9_LTS.xml`: self-contained `pom` file, configured with dependencies matching SonarQube `9.9 LTS` requirements
48+
* `pom_SQ_10_6_LATEST.xml`: self-contained `pom` file, configured with dependencies matching SonarQube `10.6` requirements
4949

5050
These two `pom`s correspond to different use cases, depending on which instance of SonarQube you will target with your custom-rules plugin.
5151

52-
In this tutorial, **we will only use the file named `pom_SQ_9_9_LTS.xml`**, as it is entirely independent of the build of the Java Analyzer, is self-contained, and will target the latest release of SonarQube.
52+
In this tutorial, **we will only use the file named `pom_SQ_10_6_LATEST.xml`**, as it is entirely independent of the build of the Java Analyzer, is self-contained, and will target the latest release of SonarQube.
5353

5454
Let's start by building the custom-plugin template by using the following command:
5555

5656
```
57-
mvn clean install -f pom_SQ_9_9_LTS.xml
57+
mvn clean install -f pom_SQ_10_6_LATEST.xml
5858
```
5959

60-
Note that you can also decide to **delete** the original `pom.xml` file (**NOT RECOMMENDED**) and then rename `pom_SQ_9_9_LTS.xml` into `pom.xml`.
60+
Note that you can also decide to **delete** the original `pom.xml` file (**NOT RECOMMENDED**) and then rename `pom_SQ_10_6_LATEST.xml` into `pom.xml`.
6161
In this case, you would be able to use the very simple command:
6262

6363
```
@@ -66,13 +66,13 @@ mvn clean install
6666

6767
Looking inside the `pom`, you will see that both SonarQube and the Java Analyzer versions are hard-coded.
6868
This is because SonarSource's analyzers are directly embedded in the various SonarQube versions and are shipped together.
69-
For instance, SonarQube `8.9` (previous LTS) is shipped with version `6.15.1.26025` of the Java Analyzer, while SonarQube `9.9` (LTS) is shipped with a much more recent version `7.16.0.30901` of the Java Analyzer.
69+
For instance, SonarQube `8.9` (previous LTS) is shipped with version `6.15.1.26025` of the Java Analyzer, while the latest SonarQube `10.6` is shipped with a much more recent version `8.0.1.36337` of the Java Analyzer.
7070
**These versions can not be changed**.
7171

7272
```xml
7373
<properties>
7474
<sonar.plugin.api.version>9.14.0.375</sonar.plugin.api.version>
75-
<sonarjava.version>7.16.0.30901</sonarjava.version>
75+
<sonarjava.version>8.0.1.36337</sonarjava.version>
7676
<!-- [...] -->
7777
</properties>
7878
```

docs/java-custom-rules-example/pom_SQ_9_9_LTS.xml renamed to docs/java-custom-rules-example/pom_SQ_10_6_LATEST.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<properties>
2222
<sonar.plugin.api.version>9.14.0.375</sonar.plugin.api.version>
23-
<sonarjava.version>7.28.0.33738</sonarjava.version>
23+
<sonarjava.version>8.0.1.36337</sonarjava.version>
2424
<!-- Don't forget to update this version of JaCoCo -->
2525
<jacoco.version>0.8.10</jacoco.version>
2626
<!-- Use UTF-8 for all resources -->

0 commit comments

Comments
 (0)