javascript
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.sonarsource.javascript</groupId>
<artifactId>javascript</artifactId>
<version>13.3.0.43633</version>
</dependency><?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.parent</groupId>
<artifactId>parent</artifactId>
<version>87.0.0.3057</version>
</parent>
<groupId>org.sonarsource.javascript</groupId>
<artifactId>javascript</artifactId>
<version>13.3.0.43633</version>
<packaging>pom</packaging>
<name>SonarJS</name>
<description>SonarQube JavaScript/TypeScript/CSS Analyzer</description>
<inceptionYear>2011</inceptionYear>
<organization>
<name>SonarSource</name>
<url>https://www.sonarsource.com</url>
</organization>
<licenses>
<license>
<name>SSALv1</name>
<url>https://sonarsource.com/license/ssal/</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>zglicz</id>
<name>Michał Zgliczyński</name>
<organization>SonarSource</organization>
</developer>
<developer>
<id>vdiez</id>
<name>Victor Diez</name>
<organization>SonarSource</organization>
</developer>
</developers>
<modules>
<module>sonar-plugin</module>
<module>its</module>
</modules>
<scm>
<connection>scm:git:git@github.com:SonarSource/sonar-javascript.git</connection>
<developerConnection>scm:git:git@github.com:SonarSource/sonar-javascript.git</developerConnection>
<url>https://github.com/SonarSource/sonar-javascript</url>
<tag>HEAD</tag>
</scm>
<issueManagement>
<url>https://github.com/SonarSource/sonar-javascript/issues</url>
</issueManagement>
<properties>
<revision>13.3.0-SNAPSHOT</revision>
<gitRepositoryName>SonarJS</gitRepositoryName>
<license.title>SonarQube JavaScript Plugin</license.title>
<!-- Version corresponds to SQ 9.9 LTS -->
<pluginApiMinVersion>9.14.0.375</pluginApiMinVersion>
<assertj.version>3.27.7</assertj.version>
<jgit.version>7.7.0.202606012155-r</jgit.version>
<junit.version>6.1.1</junit.version>
<mockito.version>5.23.0</mockito.version>
<slf4j.version>2.0.18</slf4j.version>
<jetbrains.annotations.version>26.1.0</jetbrains.annotations.version>
<sonar.version>26.7.0.124771</sonar.version>
<scanner-engine.version>13.4.1.4007</scanner-engine.version>
<sonar.api.version>13.8.0.4399</sonar.api.version>
<sonar-orchestrator.version>6.3.0.4464</sonar-orchestrator.version>
<sonar.sca.exclusions>its/**,packages/**/*.fixture.*,packages/**/fixtures/**/*</sonar.sca.exclusions>
<gson.version>2.14.0</gson.version>
<analyzer-commons.version>2.27.0.5007</analyzer-commons.version>
<rspec-maven-plugin.version>1.5.0.155</rspec-maven-plugin.version>
<rspec.sha></rspec.sha>
<rspec.branch>dogfood-automerge</rspec.branch>
<sonarlint.plugin.api.version>11.6.0.85952</sonarlint.plugin.api.version>
<artifactsToPublish>${project.groupId}:sonar-javascript-plugin:jar,${project.groupId}:sonar-javascript-plugin:json:cyclonedx</artifactsToPublish>
<maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
<maven.compiler.release>17</maven.compiler.release>
<jdk.min.version>17</jdk.min.version>
<jacoco.version>0.8.15</jacoco.version>
<version.surefire.plugin>3.1.2</version.surefire.plugin>
<!-- FIXME fix javadoc errors -->
<doclint>none</doclint>
<!-- sonar analysis -->
<sonar.sources>packages/</sonar.sources>
<sonar.exclusions>packages/**/*.test.ts,packages/**/*.fixture.*,packages/**/fixtures/**/*,packages/**/fixtures-*/**/*,packages/grpc/src/proto/*,packages/analysis/src/jsts/parsers/estree.js,packages/analysis/src/jsts/parsers/estree.d.ts,packages/analysis/src/jsts/rules/**/generated-meta.ts,packages/analysis/src/jsts/rules/metas.ts,packages/analysis/src/jsts/rules/plugin-rules.ts,packages/analysis/src/jsts/rules/rules.ts</sonar.exclusions>
<sonar.tests>packages/</sonar.tests>
<sonar.test.inclusions>packages/**/*.test.ts</sonar.test.inclusions>
<sonar.javascript.lcov.reportPaths>coverage/js/lcov.info</sonar.javascript.lcov.reportPaths>
<sonar.testExecutionReportPaths>coverage/js/test-report.xml</sonar.testExecutionReportPaths>
<sonar.typescript.tsconfigPath>
${project.basedir}/packages/tsconfig.app.json,${project.basedir}/packages/tsconfig.test.json
</sonar.typescript.tsconfigPath>
<sonar.cpd.exclusions>sonar-plugin/javascript-checks/src/main/resources/**/*.html</sonar.cpd.exclusions>
<sonar.coverage.exclusions>packages/ruling/**/*,packages/*/tests/**/*,resources/org/sonar/l10n/javascript/rules/javascript/**,packages/analysis/src/jsts/rules/**/generated-meta.ts,packages/analysis/src/jsts/rules/metas.ts,packages/analysis/src/jsts/rules/plugin-rules.ts,packages/analysis/src/jsts/rules/rules.ts</sonar.coverage.exclusions>
</properties>
<dependencyManagement>
<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>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>javascript-checks</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>css</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.sonarsource.analyzer-commons</groupId>
<artifactId>sonar-analyzer-commons</artifactId>
<version>${analyzer-commons.version}</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>${gson.version}</version>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.28.0</version>
</dependency>
<!-- enforce update even if not used -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.20.0</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.22.0</version>
</dependency>
<dependency>
<groupId>org.sonarsource.sonarlint.core</groupId>
<artifactId>sonarlint-plugin-api</artifactId>
<version>${sonarlint.plugin.api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.tukaani</groupId>
<artifactId>xz</artifactId>
<version>1.12</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>${jetbrains.annotations.version}</version>
</dependency>
<!-- Test dependencies -->
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${junit.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>${assertj.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit</artifactId>
<version>${jgit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonarsource.sonarlint.core</groupId>
<artifactId>sonarlint-core</artifactId>
<version>${sonarlint.plugin.api.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonarsource.sonarlint.core</groupId>
<artifactId>sonarlint-analysis-engine</artifactId>
<version>${sonarlint.plugin.api.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonarsource.sonarlint.core</groupId>
<artifactId>sonarlint-commons</artifactId>
<version>${sonarlint.plugin.api.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonarsource.sonarlint.core</groupId>
<artifactId>sonarlint-plugin-commons</artifactId>
<version>${sonarlint.plugin.api.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonarsource.orchestrator</groupId>
<artifactId>sonar-orchestrator-junit5</artifactId>
<version>${sonar-orchestrator.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonarsource.sonarqube</groupId>
<artifactId>sonar-ws</artifactId>
<version>${sonar.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.awaitility</groupId>
<artifactId>awaitility</artifactId>
<version>4.3.0</version>
<scope>test</scope>
</dependency>
<!-- Provided dependencies -->
<dependency>
<groupId>org.sonarsource.api.plugin</groupId>
<artifactId>sonar-plugin-api</artifactId>
<version>${sonar.api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.sonarsource.scanner.engine</groupId>
<artifactId>plugin-api-scanner-impl</artifactId>
<version>${scanner-engine.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonarsource.scanner.engine</groupId>
<artifactId>sensor-test-fixtures</artifactId>
<version>${scanner-engine.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.5.38</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonarsource.javascript</groupId>
<artifactId>sonar-javascript-plugin</artifactId>
<type>sonar-plugin</type>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.sonarsource.api.plugin</groupId>
<artifactId>sonar-plugin-api-test-fixtures</artifactId>
<version>${sonar.api.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<!-- This plugin is already configured in parent pom, however we want a configuration specific to this project -->
<configuration>
<mapping>
<js>SLASHSTAR_STYLE</js>
<mjs>SLASHSTAR_STYLE</mjs>
<cjs>SLASHSTAR_STYLE</cjs>
<ts>SLASHSTAR_STYLE</ts>
</mapping>
<licenseSets>
<licenseSet>
<includes>
<include>**/*.java</include>
<include>**/*.js</include>
<include>**/*.cjs</include>
<include>**/*.mjs</include>
<include>**/*.ts</include>
</includes>
<excludes>
<!-- Files -->
<exclude>server.mjs</exclude>
<exclude>grpc-server.mjs</exclude>
<exclude>**/*.d.ts</exclude>
<!-- Folders -->
<exclude>its/**/*</exclude>
<exclude>tsgolint/**/*</exclude>
<!-- Generated -->
<exclude>**/bin/**/*</exclude>
<exclude>**/dist/**/*</exclude>
<exclude>**/lib/**/*</exclude>
<exclude>**/generated-meta.ts</exclude>
<!-- Fixtures -->
<exclude>**/fixtures/**/*</exclude>
<exclude>**/fixtures-*/**/*</exclude>
<exclude>**/*.fixture.*</exclude>
<!-- Resources -->
<exclude>**/src/test/resources/**/*</exclude>
<exclude>coverage/**/*</exclude>
</excludes>
</licenseSet>
</licenseSets>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>resolveCiFriendliesOnly</flattenMode>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.6.3</version>
</plugin>
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<version>2.9.2</version>
<configuration>
<projectType>library</projectType>
<schemaVersion>1.6</schemaVersion>
<includeTestScope>false</includeTestScope>
<outputFormat>json</outputFormat>
<outputName>bom</outputName>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.6.1</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.7.3</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>rspec-refresh</id>
<build>
<plugins>
<plugin>
<groupId>org.sonarsource.rspec</groupId>
<artifactId>rspec-maven-plugin</artifactId>
<version>${rspec-maven-plugin.version}</version>
<configuration>
<githubToken>${env.GITHUB_TOKEN}</githubToken>
<rspecSha>${rspec.sha}</rspecSha>
<rspecShaFile>${maven.multiModuleProjectDirectory}/rspec.sha</rspecShaFile>
<vcsBranchName>${rspec.branch}</vcsBranchName>
</configuration>
<executions>
<execution>
<id>generate-rspec-rule-data</id>
<phase>generate-resources</phase>
<goals>
<goal>generate-rule-data</goal>
</goals>
<configuration>
<targets>
<target>
<ruleSubdirectory>javascript</ruleSubdirectory>
<targetDirectory>${maven.multiModuleProjectDirectory}/resources/rule-data/javascript</targetDirectory>
</target>
<target>
<ruleSubdirectory>css</ruleSubdirectory>
<targetDirectory>${maven.multiModuleProjectDirectory}/resources/rule-data/css</targetDirectory>
</target>
</targets>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>deploy-rule-data</id>
<phase>generate-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>npm</executable>
<workingDirectory>${maven.multiModuleProjectDirectory}</workingDirectory>
<arguments>
<argument>run</argument>
<argument>deploy-rule-data</argument>
</arguments>
<environmentVariables>
<RSPEC_SHA>${rspec.sha}</RSPEC_SHA>
</environmentVariables>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>