Skip to content

SONARJAVA-1689 Migrate to LTS#845

Merged
benzonico merged 10 commits into
masterfrom
SONARJAVA-1689
Jun 6, 2016
Merged

SONARJAVA-1689 Migrate to LTS#845
benzonico merged 10 commits into
masterfrom
SONARJAVA-1689

Conversation

@benzonico

Copy link
Copy Markdown
Contributor

No description provided.

@@ -116,10 +113,6 @@ public Highlightable highlightableFor(File file) {
return resourcePerspectives.as(Highlightable.class, inputFromIOFile(file));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MINOR Remove this use of "Highlightable"; it is deprecated. rule

@@ -38,7 +38,7 @@ public JavaIssue(NewIssue newIssue) {
public static JavaIssue create(SensorContext context, RuleKey ruleKey, @Nullable Double effortToFix) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MINOR Remove this use of "SensorContext"; it is deprecated. rule

Comment thread sonar-java-plugin/pom.xml
<groupId>org.sonarsource.sonarqube</groupId>
<artifactId>sonar-plugin-api</artifactId>
<scope>provided</scope>
</dependency>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@benzonico slf4j-api is still provided at runtime, even if it is not transitive dependency of sonar-plugin-api, so that you can reduce size of plugin by declaring:

    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <scope>provided</scope>
    </dependency>

Also you package jcl-over-slf4j - I don't know if this one is also provided at runtime, but maybe it is even not need for Java plugin and can be completely excluded.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@benzonico but ultimately usage of slf4j-api should be removed - see https://jira.sonarsource.com/browse/SONAR-5700

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Godin

Godin commented Jun 2, 2016

Copy link
Copy Markdown
Member

@benzonico you can also remove JavaCommonRulesEngine and friends - see https://jira.sonarsource.com/browse/SONAR-6703

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants