|
|
@ -16,58 +16,38 @@ |
|
|
|
<version>1.0</version> |
|
|
|
<version>1.0</version> |
|
|
|
<description>用于检查Java源代码的安全性设计准则的Sonarqube插件</description> |
|
|
|
<description>用于检查Java源代码的安全性设计准则的Sonarqube插件</description> |
|
|
|
|
|
|
|
|
|
|
|
<properties> |
|
|
|
|
|
|
|
<jacoco.version>0.8.10</jacoco.version> |
|
|
|
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
|
|
|
|
|
|
|
</properties> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dependencies> |
|
|
|
<dependencies> |
|
|
|
<dependency> |
|
|
|
|
|
|
|
<groupId>org.sonarsource.java</groupId> |
|
|
|
|
|
|
|
<artifactId>sonar-java-plugin</artifactId> |
|
|
|
|
|
|
|
<version>7.30.1.34514</version> |
|
|
|
|
|
|
|
<type>sonar-plugin</type> |
|
|
|
|
|
|
|
<scope>compile</scope> |
|
|
|
|
|
|
|
</dependency> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dependency> |
|
|
|
<dependency> |
|
|
|
<groupId>org.sonarsource.api.plugin</groupId> |
|
|
|
<groupId>org.sonarsource.api.plugin</groupId> |
|
|
|
<artifactId>sonar-plugin-api</artifactId> |
|
|
|
<artifactId>sonar-plugin-api</artifactId> |
|
|
|
|
|
|
|
<version>9.9.0.229</version> |
|
|
|
<scope>provided</scope> |
|
|
|
<scope>provided</scope> |
|
|
|
</dependency> |
|
|
|
</dependency> |
|
|
|
|
|
|
|
|
|
|
|
<dependency> |
|
|
|
|
|
|
|
<groupId>org.sonarsource.analyzer-commons</groupId> |
|
|
|
|
|
|
|
<artifactId>sonar-analyzer-commons</artifactId> |
|
|
|
|
|
|
|
</dependency> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dependency> |
|
|
|
<dependency> |
|
|
|
<groupId>org.slf4j</groupId> |
|
|
|
<groupId>org.slf4j</groupId> |
|
|
|
<artifactId>slf4j-api</artifactId> |
|
|
|
<artifactId>slf4j-api</artifactId> |
|
|
|
<scope>provided</scope> |
|
|
|
<scope>provided</scope> |
|
|
|
</dependency> |
|
|
|
</dependency> |
|
|
|
|
|
|
|
|
|
|
|
<!-- unit tests --> |
|
|
|
|
|
|
|
<dependency> |
|
|
|
|
|
|
|
<groupId>org.sonarsource.api.plugin</groupId> |
|
|
|
|
|
|
|
<artifactId>sonar-plugin-api-test-fixtures</artifactId> |
|
|
|
|
|
|
|
<scope>test</scope> |
|
|
|
|
|
|
|
</dependency> |
|
|
|
|
|
|
|
<dependency> |
|
|
|
<dependency> |
|
|
|
<groupId>org.sonarsource.sonarqube</groupId> |
|
|
|
<groupId>org.sonarsource.java</groupId> |
|
|
|
<artifactId>sonar-plugin-api-impl</artifactId> |
|
|
|
<artifactId>sonar-java-plugin</artifactId> |
|
|
|
<scope>test</scope> |
|
|
|
<version>${sonar.java.version}</version> |
|
|
|
|
|
|
|
<type>sonar-plugin</type> |
|
|
|
|
|
|
|
<scope>provided</scope> |
|
|
|
</dependency> |
|
|
|
</dependency> |
|
|
|
|
|
|
|
|
|
|
|
<dependency> |
|
|
|
<dependency> |
|
|
|
<groupId>org.sonarsource.java</groupId> |
|
|
|
<groupId>org.sonarsource.analyzer-commons</groupId> |
|
|
|
<artifactId>test-classpath-reader</artifactId> |
|
|
|
<artifactId>sonar-analyzer-commons</artifactId> |
|
|
|
<version>7.30.1.34514</version> |
|
|
|
|
|
|
|
<scope>test</scope> |
|
|
|
|
|
|
|
</dependency> |
|
|
|
</dependency> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- unit tests --> |
|
|
|
<dependency> |
|
|
|
<dependency> |
|
|
|
<groupId>org.sonarsource.java</groupId> |
|
|
|
<groupId>org.sonarsource.java</groupId> |
|
|
|
<artifactId>java-checks-testkit</artifactId> |
|
|
|
<artifactId>java-checks-testkit</artifactId> |
|
|
|
<version>7.30.1.34514</version> |
|
|
|
<version>${sonar.java.version}</version> |
|
|
|
<scope>test</scope> |
|
|
|
<scope>test</scope> |
|
|
|
</dependency> |
|
|
|
</dependency> |
|
|
|
<dependency> |
|
|
|
<dependency> |
|
|
@ -80,21 +60,11 @@ |
|
|
|
<artifactId>junit-jupiter-migrationsupport</artifactId> |
|
|
|
<artifactId>junit-jupiter-migrationsupport</artifactId> |
|
|
|
<scope>test</scope> |
|
|
|
<scope>test</scope> |
|
|
|
</dependency> |
|
|
|
</dependency> |
|
|
|
<dependency> |
|
|
|
|
|
|
|
<groupId>org.mockito</groupId> |
|
|
|
|
|
|
|
<artifactId>mockito-core</artifactId> |
|
|
|
|
|
|
|
<scope>test</scope> |
|
|
|
|
|
|
|
</dependency> |
|
|
|
|
|
|
|
<dependency> |
|
|
|
<dependency> |
|
|
|
<groupId>org.assertj</groupId> |
|
|
|
<groupId>org.assertj</groupId> |
|
|
|
<artifactId>assertj-core</artifactId> |
|
|
|
<artifactId>assertj-core</artifactId> |
|
|
|
<scope>test</scope> |
|
|
|
<scope>test</scope> |
|
|
|
</dependency> |
|
|
|
</dependency> |
|
|
|
<dependency> |
|
|
|
|
|
|
|
<groupId>com.google.guava</groupId> |
|
|
|
|
|
|
|
<artifactId>guava</artifactId> |
|
|
|
|
|
|
|
<scope>test</scope> |
|
|
|
|
|
|
|
</dependency> |
|
|
|
|
|
|
|
</dependencies> |
|
|
|
</dependencies> |
|
|
|
|
|
|
|
|
|
|
|
<build> |
|
|
|
<build> |
|
|
@ -109,14 +79,12 @@ |
|
|
|
<pluginClass>com.keyware.sonar.java.JavaSecurityDesignRulesPlugin</pluginClass> |
|
|
|
<pluginClass>com.keyware.sonar.java.JavaSecurityDesignRulesPlugin</pluginClass> |
|
|
|
<sonarLintSupported>true</sonarLintSupported> |
|
|
|
<sonarLintSupported>true</sonarLintSupported> |
|
|
|
<skipDependenciesPackaging>true</skipDependenciesPackaging> |
|
|
|
<skipDependenciesPackaging>true</skipDependenciesPackaging> |
|
|
|
<pluginApiMinVersion>9.14.0.375</pluginApiMinVersion> |
|
|
|
<sonarQubeMinVersion>8.9</sonarQubeMinVersion> |
|
|
|
<requirePlugins>java:${project.version}</requirePlugins> |
|
|
|
<requirePlugins>java:${sonar.java.version}</requirePlugins> |
|
|
|
|
|
|
|
<jreMinVersion>11</jreMinVersion> |
|
|
|
</configuration> |
|
|
|
</configuration> |
|
|
|
</plugin> |
|
|
|
</plugin> |
|
|
|
<plugin> |
|
|
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
|
|
|
|
|
<artifactId>maven-jar-plugin</artifactId> |
|
|
|
|
|
|
|
</plugin> |
|
|
|
|
|
|
|
<plugin> |
|
|
|
<plugin> |
|
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
|
<artifactId>maven-shade-plugin</artifactId> |
|
|
|
<artifactId>maven-shade-plugin</artifactId> |
|
|
@ -144,7 +112,7 @@ |
|
|
|
<plugin> |
|
|
|
<plugin> |
|
|
|
<groupId>org.jacoco</groupId> |
|
|
|
<groupId>org.jacoco</groupId> |
|
|
|
<artifactId>jacoco-maven-plugin</artifactId> |
|
|
|
<artifactId>jacoco-maven-plugin</artifactId> |
|
|
|
<version>${jacoco.version}</version> |
|
|
|
<version>${version.jacoco.plugin}</version> |
|
|
|
<executions> |
|
|
|
<executions> |
|
|
|
<execution> |
|
|
|
<execution> |
|
|
|
<id>prepare-agent</id> |
|
|
|
<id>prepare-agent</id> |
|
|
|