[sonar-dev] Question about correct API dependencies for Java plugin

[sonar-dev] Question about correct API dependencies for Java plugin

(SonarQube 5.1) I am trying to write a plugin that will be used to analyze a Java project for our very-enterprise-specific styles, code layout, etc. I am looking at the “sonar-examples-master/plugins/java-custom-rules”. It seems to make
use of “CheckRegistrar” and other classes in
org.sonar.plugins.java.api.

1.Are these the correct classes for me to use? I know there were a lot of changes recently with 5.x, and I want to avoid old APIs.

2.I’m still getting used to Maven: what is the best Maven dependency for pulling them in?

(SonarQube 5.1) I am trying to write a plugin that will be used to analyze a Java project for our very-enterprise-specific styles, code layout, etc. I am looking at the “sonar-examples-master/plugins/java-custom-rules”. It seems to make
use of “CheckRegistrar” and other classes in
org.sonar.plugins.java.api.

1.Are these the correct classes for me to use? I know there were a lot of changes recently with 5.x, and I want to avoid old APIs.

2.I’m still getting used to Maven: what is the best Maven dependency for pulling them in?