Skip to content

Commit

Permalink
Updated version to 2.4-RC1 and downgraded sonar dependency to 7.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Czyrzniewski committed Aug 6, 2019
1 parent 810fada commit 7710699
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion its/plugin/plugins/json-custom-rules-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.codehaus.sonar-plugins.json</groupId>
<artifactId>json-its-plugin-plugins</artifactId>
<version>2.4-SNAPSHOT</version>
<version>2.4-RC1</version>
</parent>

<artifactId>json-custom-rules-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion its/plugin/plugins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.codehaus.sonar-plugins.json</groupId>
<artifactId>json-its-plugin</artifactId>
<version>2.4-SNAPSHOT</version>
<version>2.4-RC1</version>
</parent>

<artifactId>json-its-plugin-plugins</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion its/plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.codehaus.sonar-plugins.json</groupId>
<artifactId>json-its</artifactId>
<version>2.4-SNAPSHOT</version>
<version>2.4-RC1</version>
</parent>

<artifactId>json-its-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion its/plugin/tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.codehaus.sonar-plugins.json</groupId>
<artifactId>json-its-plugin</artifactId>
<version>2.4-SNAPSHOT</version>
<version>2.4-RC1</version>
</parent>

<artifactId>json-its-plugin-tests</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion its/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.codehaus.sonar-plugins.json</groupId>
<artifactId>json</artifactId>
<version>2.4-SNAPSHOT</version>
<version>2.4-RC1</version>
</parent>

<artifactId>json-its</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion its/ruling/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.codehaus.sonar-plugins.json</groupId>
<artifactId>json-its</artifactId>
<version>2.4-SNAPSHOT</version>
<version>2.4-RC1</version>
</parent>

<artifactId>json-its-ruling</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion its/ruling/tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.codehaus.sonar-plugins.json</groupId>
<artifactId>json-its-ruling</artifactId>
<version>2.4-SNAPSHOT</version>
<version>2.4-RC1</version>
</parent>

<artifactId>json-its-ruling-tests</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion json-checks-testkit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.codehaus.sonar-plugins.json</groupId>
<artifactId>json</artifactId>
<version>2.4-SNAPSHOT</version>
<version>2.4-RC1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion json-checks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.codehaus.sonar-plugins.json</groupId>
<artifactId>json</artifactId>
<version>2.4-SNAPSHOT</version>
<version>2.4-RC1</version>
</parent>

<artifactId>json-checks</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion json-frontend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.codehaus.sonar-plugins.json</groupId>
<artifactId>json</artifactId>
<version>2.4-SNAPSHOT</version>
<version>2.4-RC1</version>
</parent>

<artifactId>json-frontend</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>org.codehaus.sonar-plugins.json</groupId>
<artifactId>json</artifactId>
<version>2.4-SNAPSHOT</version>
<version>2.4-RC1</version>
<packaging>pom</packaging>

<name>SonarQube JSON Analyzer</name>
Expand Down Expand Up @@ -61,7 +61,7 @@
<license.title>SonarQube JSON Analyzer</license.title>
<license.owner>David RACODON</license.owner>
<license.mailto>[email protected]</license.mailto>
<sonar.version>7.9.1</sonar.version>
<sonar.version>7.6</sonar.version>
<sslr.version>1.23</sslr.version>
<sonar.jacoco.reportPath>${project.basedir}/../target/jacoco.exec</sonar.jacoco.reportPath>
</properties>
Expand Down
2 changes: 1 addition & 1 deletion sonar-json-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.codehaus.sonar-plugins.json</groupId>
<artifactId>json</artifactId>
<version>2.4-SNAPSHOT</version>
<version>2.4-RC1</version>
</parent>

<artifactId>sonar-json-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

import org.junit.Test;
import org.sonar.api.Plugin;
import org.sonar.api.SonarEdition;
import org.sonar.api.SonarQubeSide;
import org.sonar.api.internal.SonarRuntimeImpl;
import org.sonar.api.utils.Version;
Expand All @@ -32,15 +31,15 @@ public class JSONPluginTest {

@Test
public void should_get_the_right_version() {
Plugin.Context context = new Plugin.Context(SonarRuntimeImpl.forSonarQube(Version.create(5, 6), SonarQubeSide.SCANNER, SonarEdition.COMMUNITY));
Plugin.Context context = new Plugin.Context(SonarRuntimeImpl.forSonarQube(Version.create(5, 6), SonarQubeSide.SCANNER));
new JSONPlugin().define(context);
assertThat(context.getSonarQubeVersion().major()).isEqualTo(5);
assertThat(context.getSonarQubeVersion().minor()).isEqualTo(6);
}

@Test
public void should_get_the_right_number_of_extensions() {
Plugin.Context context = new Plugin.Context(SonarRuntimeImpl.forSonarQube(Version.create(5, 6), SonarQubeSide.SCANNER, SonarEdition.COMMUNITY));
Plugin.Context context = new Plugin.Context(SonarRuntimeImpl.forSonarQube(Version.create(5, 6), SonarQubeSide.SCANNER));
new JSONPlugin().define(context);
assertThat(context.getExtensions()).hasSize(4);
}
Expand Down

0 comments on commit 7710699

Please sign in to comment.