Skip to content

Commit

Permalink
Fix dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
oussamaLaribi committed Dec 16, 2022
1 parent 3a30a3b commit 1d008fd
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 10 deletions.
7 changes: 6 additions & 1 deletion java-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
<artifactId>sonar-plugin-api</artifactId>
</dependency>

<dependency>
<groupId>org.sonarsource.sonarqube</groupId>
<artifactId>sonar-plugin-api-impl</artifactId>
</dependency>

<dependency>
<groupId>org.sonarsource.analyzer-commons</groupId>
<artifactId>sonar-analyzer-commons</artifactId>
Expand Down Expand Up @@ -68,7 +73,7 @@
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>

</dependencies>

<build>
Expand Down
10 changes: 10 additions & 0 deletions php-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@
<artifactId>sonar-plugin-api</artifactId>
</dependency>

<dependency>
<groupId>org.sonarsource.sonarqube</groupId>
<artifactId>sonar-plugin-api-impl</artifactId>
</dependency>

<dependency>
<groupId>org.sonarsource.analyzer-commons</groupId>
<artifactId>sonar-analyzer-commons</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down
3 changes: 0 additions & 3 deletions php-plugin/src/main/java/fr/cnumr/php/MyPhpRules.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,12 @@
package fr.cnumr.php;


import com.google.common.collect.ImmutableList;
import fr.cnumr.php.checks.*;
import org.sonar.api.SonarEdition;
import org.sonar.api.SonarQubeSide;
import org.sonar.api.SonarRuntime;
import org.sonar.api.internal.SonarRuntimeImpl;
import org.sonar.api.server.rule.RulesDefinition;
import org.sonar.api.utils.Version;
import org.sonar.plugins.php.api.visitors.PHPCustomRuleRepository;
import org.sonarsource.analyzer.commons.RuleMetadataLoader;
import java.util.ArrayList;
import java.util.Collections;
Expand Down
8 changes: 5 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
<sonar.python.version>3.9.0.9230</sonar.python.version>
<sonarphp.version>3.3.0.5166</sonarphp.version>
<sonar-packaging.version>1.20.0.405</sonar-packaging.version>
<junit.version>4.13.2</junit.version>

<junit.version>4.13.2</junit.version>
<junit.jupiter.version>5.9.1</junit.jupiter.version>
<assertJ.version>3.23.1</assertJ.version>

Expand All @@ -80,12 +80,14 @@
<groupId>org.sonarsource.analyzer-commons</groupId>
<artifactId>sonar-analyzer-commons</artifactId>
<version>${sonar-analyzer-commons.version}</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>org.sonarsource.sonarqube</groupId>
<artifactId>sonar-plugin-api-impl</artifactId>
<version>${sonar-plugin-api-impl.version}</version>
<scope>compile</scope>
</dependency>

<!-- JAVA -->
Expand Down Expand Up @@ -190,9 +192,9 @@

<modules>
<!-- <module>ecolinter-plugin</module> -->
<module>python-plugin</module>
<module>java-plugin</module>
<module>php-plugin</module>
<module>python-plugin</module>
<!-- <module>xml-plugin</module> -->
</modules>

Expand Down
3 changes: 0 additions & 3 deletions python-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,10 @@
<groupId>org.sonarsource.sonarqube</groupId>
<artifactId>sonar-plugin-api</artifactId>
</dependency>

<dependency>
<groupId>org.sonarsource.sonarqube</groupId>
<artifactId>sonar-plugin-api-impl</artifactId>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>org.sonarsource.analyzer-commons</groupId>
<artifactId>sonar-analyzer-commons</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ruleKeys": ["S69"]
}

0 comments on commit 1d008fd

Please sign in to comment.