Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sonar plugin api and other used libraries #264

Merged
merged 2 commits into from
Jun 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.3</version>
<version>0.8.5</version>
<executions>
<execution>
<id>pre-unit-test</id>
Expand Down
12 changes: 6 additions & 6 deletions sonar-dependency-check-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
</scm>

<properties>
<sonar.version>7.6</sonar.version>
<sonar.version>7.9.3.33150</sonar.version>
<!-- Configuration for sonar-packaging-maven-plugin -->
<sonar.pluginClass>org.sonar.dependencycheck.DependencyCheckPlugin</sonar.pluginClass>
<sonar.pluginName>Dependency-Check</sonar.pluginName>
<sonar.pluginKey>dependencycheck</sonar.pluginKey>
<junit.jupiter.version>5.5.2</junit.jupiter.version>
<junit.jupiter.version>5.6.2</junit.jupiter.version>
<jackson.version>2.10.3</jackson.version>
</properties>

Expand All @@ -39,7 +39,7 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.8.1</version>
<version>3.10</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand All @@ -54,8 +54,8 @@
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-annotations</artifactId>
<version>3.1.8</version>
<scope>provided</scope>
<version>4.0.5</version>
<optional>true</optional>
</dependency>

<!-- unit tests -->
Expand All @@ -80,7 +80,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>2.27.0</version>
<version>3.3.0</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

import org.junit.jupiter.api.Test;
import org.sonar.api.Plugin;
import org.sonar.api.SonarEdition;
import org.sonar.api.SonarQubeSide;
import org.sonar.api.SonarRuntime;
import org.sonar.api.internal.PluginContextImpl;
Expand All @@ -33,7 +34,8 @@ public class DependencyCheckPluginTest {

@Test
public void testExtensions() {
SonarRuntime runtime = SonarRuntimeImpl.forSonarQube(Version.create(7, 6), SonarQubeSide.SCANNER);
SonarRuntime runtime = SonarRuntimeImpl.forSonarQube(Version.create(7, 9), SonarQubeSide.SCANNER,
SonarEdition.COMMUNITY);
Plugin.Context context = new PluginContextImpl.Builder().setSonarRuntime(runtime).build();
DependencyCheckPlugin plugin = new DependencyCheckPlugin();
plugin.define(context);
Expand Down