I’m updating a custom language plugin for SonarQube to be compatible with SonarQube 2026.1 LTA and Community.
I have a test for the custom plugin which uses
SensorContextTester class which was available for the SQ 2025 LTA under sonar-plugin-api-impl artifact and imported using org.sonar.api.batch.sensor.internal.SensorContextTester class path.
TestInputFileBuilder class was available for the SQ 2025 LTA under sonar-plugin-api-impl artifact and imported using org.sonar.api.batch.sensor.internal.SensorContextTester class path.
Have these been relocated somewhere else or removed ? If removed, have you something else to replace them ?
Should I add a specific dependency in pom.xml to be able to find them? Actually I’m using only
SensorContextTester and TestInputFileBuilder did not move recently, and are still located in sonar-plugin-api-impl.
I’m not sure if I understood correctly, but If you removed the dependency to sonar-plugin-api-impl, it’s expected you will not find them anymore.
EDIT: In case it may help I was able to find the classes here in Maven
However, since sonar-plugin-api-impl 26.7.0.124771, org.sonar.api.batch.fs.internal.* are removed, how to migrate to sonar-plugin-api-impl 26.11.0.134175? thanks
Unfortunately, these packages are versioned differently. See the “Scanner Engine” column in the tables in the sonar-plugin-api repository for which version to use. For 26.11.0.134175, it would be 13.16.0.6705.