Skip to content

Commit

Permalink
JS-162 Create API module
Browse files Browse the repository at this point in the history
  • Loading branch information
saberduck committed May 24, 2024
1 parent 6789d31 commit 56d482c
Show file tree
Hide file tree
Showing 17 changed files with 55 additions and 7 deletions.
3 changes: 1 addition & 2 deletions its/plugin/plugins/eslint-custom-rules-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
</dependency>
<dependency>
<groupId>org.sonarsource.javascript</groupId>
<artifactId>sonar-javascript-plugin</artifactId>
<type>sonar-plugin</type>
<artifactId>api</artifactId>
</dependency>
</dependencies>

Expand Down
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@
<dependencies>

<!-- Default dependencies (compile) -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>bridge</artifactId>
Expand Down
36 changes: 36 additions & 0 deletions sonar-plugin/api/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.sonarsource.javascript</groupId>
<artifactId>sonar-plugin</artifactId>
<version>10.15.0-SNAPSHOT</version>
</parent>

<artifactId>api</artifactId>

<name>SonarQube JavaScript :: API</name>

<dependencies>
<dependency>
<groupId>org.sonarsource.api.plugin</groupId>
<artifactId>sonar-plugin-api</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</dependency>


<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*/
@ScannerSide
@SonarLintSide
@Deprecated
@Deprecated(since = "6.0")
public interface CustomRuleRepository {
enum Language {
JAVASCRIPT,
Expand Down
3 changes: 1 addition & 2 deletions sonar-plugin/bridge/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@

<dependencies>
<dependency>
<!-- TODO this should be replaced by new API module -->
<groupId>${project.groupId}</groupId>
<artifactId>javascript-checks</artifactId>
<artifactId>api</artifactId>
</dependency>
<dependency>
<groupId>org.sonarsource.api.plugin</groupId>
Expand Down
4 changes: 4 additions & 0 deletions sonar-plugin/javascript-checks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
<name>SonarQube JavaScript :: Checks</name>

<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>api</artifactId>
</dependency>
<dependency>
<groupId>org.sonarsource.api.plugin</groupId>
<artifactId>sonar-plugin-api</artifactId>
Expand Down
1 change: 1 addition & 0 deletions sonar-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@


<modules>
<module>api</module>
<module>bridge</module>
<module>css</module>
<module>javascript-checks</module>
Expand Down
8 changes: 6 additions & 2 deletions sonar-plugin/sonar-javascript-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,20 @@
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>bridge</artifactId>
<artifactId>api</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>javascript-checks</artifactId>
<artifactId>bridge</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>css</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>javascript-checks</artifactId>
</dependency>

<dependency>
<groupId>commons-io</groupId>
Expand Down

0 comments on commit 56d482c

Please sign in to comment.