Skip to content

Commit 3456a1c

Browse files
SONARJAVA-5173 Fix broken docs for SQ_10_6. (#4922)
We were not able to compile some tests, because org.sonar.api.testfixtures.log.LogTester moved to sonar-plugin-api-test-fixtures. Tested with `mvn clean install -f pom_SQ_10_6_LATEST.xml` We also fix the CI to run the above command automatically. This was tested by running CI against a bad change.
1 parent f21c217 commit 3456a1c

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.cirrus.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ test_analyze_task:
9292
- source cirrus-env BUILD
9393
# ignore duplications in the SE engine plugin, as it will be moved away from sonar-java at some point
9494
- PULL_REQUEST_SHA=$GIT_SHA1 regular_mvn_build_deploy_analyze -P-deploy-sonarsource,-release,-sign -Dmaven.deploy.skip=true -Dsonar.analysisCache.enabled=true -Dsonar.cpd.exclusions=java-symbolic-execution/**
95+
- cd docs/java-custom-rules-example
96+
- mvn clean package -f pom_SQ_10_6_LATEST.xml --batch-mode
97+
- cd "${CIRRUS_WORKING_DIR}"
9598
- ./check-license-compliance.sh
9699
cleanup_before_cache_script: cleanup_maven_repository
97100

docs/java-custom-rules-example/pom_SQ_10_6_LATEST.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
<description>Java Custom Rules Example for SonarQube</description>
2020

2121
<properties>
22-
<sonar.plugin.api.version>9.14.0.375</sonar.plugin.api.version>
22+
<!-- TODO: Next time bump it up to the LTS version. -->
23+
<sonar.plugin.api.version>10.7.0.2191</sonar.plugin.api.version>
2324
<sonarjava.version>8.0.1.36337</sonarjava.version>
2425
<!-- Don't forget to update this version of JaCoCo -->
2526
<jacoco.version>0.8.10</jacoco.version>
@@ -67,6 +68,13 @@
6768
<scope>test</scope>
6869
</dependency>
6970

71+
<dependency>
72+
<groupId>org.sonarsource.api.plugin</groupId>
73+
<artifactId>sonar-plugin-api-test-fixtures</artifactId>
74+
<version>${sonar.plugin.api.version}</version>
75+
<scope>test</scope>
76+
</dependency>
77+
7078
<!-- version to be specified manually -->
7179
<dependency>
7280
<groupId>org.junit.jupiter</groupId>

0 commit comments

Comments
 (0)