Skip to content
Open
149 changes: 149 additions & 0 deletions cpp/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ CBOMkit sonar-cryptography plugin
~ Copyright (C) 2024 PQCA
~
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to You under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.ibm</groupId>
<artifactId>sonar-cryptography</artifactId>
<version>1.5.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>sonar-cryptography-cpp</artifactId>
<name>Sonar Cryptography Plugin :: C/C++</name>
<description>
C and C++ language support for the Sonar Cryptography Plugin,
with detection rules for OpenSSL and other cryptographic libraries.
</description>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>

<dependencies>

<!-- ── Internal modules ─────────────────────────────────────────── -->
<dependency>
<groupId>com.ibm</groupId>
<artifactId>sonar-cryptography-common</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>com.ibm</groupId>
<artifactId>sonar-cryptography-engine</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>com.ibm</groupId>
<artifactId>sonar-cryptography-mapper</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>com.ibm</groupId>
<artifactId>sonar-cryptography-enricher</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>com.ibm</groupId>
<artifactId>sonar-cryptography-output</artifactId>
<version>${project.version}</version>
</dependency>

<!-- ── SonarQube API ────────────────────────────────────────────── -->
<dependency>
<groupId>org.sonarsource.api.plugin</groupId>
<artifactId>sonar-plugin-api</artifactId>
<scope>provided</scope>
</dependency>

<!-- ── ANTLR4 runtime (grammar lives in engine module) ──────────── -->
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
</dependency>

<!-- ── Annotations ──────────────────────────────────────────────── -->
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</dependency>

<!-- ── Logging ──────────────────────────────────────────────────── -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>

<!-- ── Test dependencies ────────────────────────────────────────── -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.sonarsource.api.plugin</groupId>
<artifactId>sonar-plugin-api-test-fixtures</artifactId>
<scope>test</scope>
</dependency>

</dependencies>

<build>
<plugins>

<!-- ── Google Java Format (AOSP style, matches rest of project) -->
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
</plugin>

<!-- ── Surefire for JUnit 5 ──────────────────────────────────── -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>

</plugins>
</build>

</project>
Loading