Following the instructions here for creating a Sonar Plugin causes a build failure if the SLang Kotlin plugin is included in the pom.
Reproduction:
- clone this template https://github.com/SonarSource/sonar-custom-rules-examples/tree/master/java-custom-rules
- add the kotlin plugin to the pom in the dependencies section
<dependency>
<groupId>org.sonarsource.slang</groupId>
<artifactId>sonar-kotlin-plugin</artifactId>
<type>sonar-plugin</type>
<version>1.7.0.883</version>
<scope>provided</scope>
</dependency>
- build
Error:
Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: Provider javaslang.match.PatternsProcessor not found