-
Notifications
You must be signed in to change notification settings - Fork 684
/
pom.xml
402 lines (381 loc) · 16.1 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
<?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>80.0.0.2205</version>
</parent>
<groupId>org.sonarsource.java</groupId>
<artifactId>java</artifactId>
<version>8.7.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>SonarJava</name>
<description>Code Analyzer for Java</description>
<url>http://redirect.sonarsource.com/plugins/java.html</url>
<inceptionYear>2012</inceptionYear>
<organization>
<name>SonarSource</name>
<url>http://www.sonarsource.com</url>
</organization>
<licenses>
<license>
<name>GNU LGPL 3</name>
<url>http://www.gnu.org/licenses/lgpl.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<!-- Main maintainers -->
<developer><name>Alban Auzeill</name> <id>alban-auzeill</id> <organization>SonarSource</organization></developer>
<developer><name>Angelo Buono</name> <id>ADarko22</id> <organization>SonarSource</organization></developer>
<developer><name>Dorian Burihabwa</name> <id>dorian-burihabwa-sonarsource</id> <organization>SonarSource</organization></developer>
<developer><name>Irina Batinic</name> <id>irina-batinic-sonarsource</id> <organization>SonarSource</organization></developer>
<developer><name>Johann Beleites</name> <id>johann-beleites-sonarsource</id> <organization>SonarSource</organization></developer>
<developer><name>Leonardo Pilastri</name> <id>leonardo-pilastri-sonarsource</id> <organization>SonarSource</organization></developer>
<developer><name>Marco Kaufmann</name> <id>kaufco</id> <organization>SonarSource</organization></developer>
<developer><name>Margarita Nedzelska</name> <id>leveretka</id> <organization>SonarSource</organization></developer>
<developer><name>Michael Gumowski</name> <id>Wohops</id> <organization>SonarSource</organization></developer>
<!-- Frequent Contributors -->
<developer><name>Chrislain Razafimahefa</name><id>chrislain-razafimahefa-sonarsource</id><organization>SonarSource</organization></developer>
<developer><name>Evgeny Mandrikov</name> <id>godin</id> <organization>SonarSource</organization></developer>
<developer><name>Nicolas Peru</name> <id>benzonico</id> <organization>SonarSource</organization></developer>
<developer><name>Quentin Jaquier</name> <id>quentin-jaquier-sonarsource</id> <organization>SonarSource</organization></developer>
<developer><name>Sebastian Hungerecker</name> <id>sebastian-hungerecker-sonarsource</id> <organization>SonarSource</organization></developer>
<developer><name>Tibor Blenessy</name> <id>saberduck</id> <organization>SonarSource</organization></developer>
</developers>
<modules>
<module>java-checks-test-sources</module>
<module>java-frontend</module>
<module>java-symbolic-execution</module>
<module>java-checks-testkit</module>
<module>java-checks</module>
<module>java-checks-aws</module>
<module>check-list</module>
<module>external-reports</module>
<module>sonar-java-plugin</module>
<module>java-surefire</module>
<module>java-jsp</module>
<module>its</module>
<module>docs</module>
<module>java-checks-common</module>
</modules>
<scm>
<connection>scm:git:[email protected]:SonarSource/sonar-java.git</connection>
<developerConnection>scm:git:[email protected]:SonarSource/sonar-java.git</developerConnection>
<url>https://github.com/SonarSource/sonar-java</url>
<tag>HEAD</tag>
</scm>
<issueManagement>
<system>JIRA</system>
<url>https://jira.sonarsource.com/browse/SONARJAVA</url>
</issueManagement>
<ciManagement>
<system>Cirrus CI</system>
<url>https://cirrus-ci.com/github/SonarSource/sonar-java</url>
</ciManagement>
<properties>
<license.title>SonarQube Java</license.title>
<jdk.min.version>17</jdk.min.version>
<maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
<sonar.version>10.7.0.96327</sonar.version>
<!--
sonar-plugin-api should be compatible with SQ peach. You can see which version SQ is using
at SonarSource/sonarqube/gradle.properties
-->
<sonar.plugin.api.version>10.12.0.2522</sonar.plugin.api.version>
<sonarlint.plugin.api.version>9.8.0.76914</sonarlint.plugin.api.version>
<analyzer.commons.version>2.14.0.3087</analyzer.commons.version>
<orchestrator.version>5.0.0.2065</orchestrator.version>
<sslr.version>1.24.0.633</sslr.version>
<argLine>-Xmx512m</argLine>
<gitRepositoryName>sonar-java</gitRepositoryName>
<!-- Use more recent version than the one in parent-oss to support jreMinVersion -->
<!-- Release: enable publication to Bintray -->
<artifactsToPublish>${project.groupId}:sonar-java-plugin:jar</artifactsToPublish>
<!-- Overrides parent pom to use a more recent version of jacoco -->
<version.jacoco.plugin>0.8.11</version.jacoco.plugin>
</properties>
<distributionManagement>
<repository>
<id>local-folder</id>
<name>Local folder to test deployment configuration</name>
<url>file:./local-deployment</url>
</repository>
</distributionManagement>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.sonarsource.api.plugin</groupId>
<artifactId>sonar-plugin-api</artifactId>
<version>${sonar.plugin.api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.sonarsource.api.plugin</groupId>
<artifactId>sonar-plugin-api-test-fixtures</artifactId>
<version>${sonar.plugin.api.version}</version>
<scope>test</scope>
</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.sonarsource.sonarlint.core</groupId>
<artifactId>sonarlint-core</artifactId>
<version>${sonarlint.plugin.api.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonarsource.sonarqube</groupId>
<artifactId>sonar-plugin-api-impl</artifactId>
<version>${sonar.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonarsource.sonarqube</groupId>
<artifactId>sonar-testing-harness</artifactId>
<version>${sonar.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonarsource.analyzer-commons</groupId>
<artifactId>sonar-analyzer-commons</artifactId>
<version>${analyzer.commons.version}</version>
</dependency>
<dependency>
<groupId>org.sonarsource.analyzer-commons</groupId>
<artifactId>sonar-analyzer-recognizers</artifactId>
<version>${analyzer.commons.version}</version>
</dependency>
<dependency>
<groupId>org.sonarsource.analyzer-commons</groupId>
<artifactId>sonar-xml-parsing</artifactId>
<version>${analyzer.commons.version}</version>
</dependency>
<dependency>
<groupId>org.sonarsource.analyzer-commons</groupId>
<artifactId>sonar-analyzer-test-commons</artifactId>
<version>${analyzer.commons.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonarsource.analyzer-commons</groupId>
<artifactId>sonar-regex-parsing</artifactId>
<version>${analyzer.commons.version}</version>
</dependency>
<dependency>
<groupId>org.sonarsource.analyzer-commons</groupId>
<artifactId>sonar-performance-measure</artifactId>
<version>${analyzer.commons.version}</version>
</dependency>
<dependency>
<groupId>org.sonarsource.sslr</groupId>
<artifactId>sslr-core</artifactId>
<version>${sslr.version}</version>
<exclusions>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>33.3.1-jre</version>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>org.sonarsource.sslr</groupId>
<artifactId>sslr-testing-harness</artifactId>
<version>${sslr.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.easytesting</groupId>
<artifactId>fest-assert</artifactId>
</exclusion>
<!-- junit 4.12 depends on more recent hamcrest -->
<exclusion>
<artifactId>hamcrest-all</artifactId>
<groupId>org.hamcrest</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>5.11.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.14.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>5.14.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.26.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.30</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
<version>2.2.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.17.0</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-expression</artifactId>
<version>6.1.13</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.17.0</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.11.0</version>
<scope>compile</scope>
</dependency>
<!-- staxmate is used by java-surefire -->
<dependency>
<groupId>com.fasterxml.staxmate</groupId>
<artifactId>staxmate</artifactId>
<version>2.4.1</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>de.thetaphi</groupId>
<artifactId>forbiddenapis</artifactId>
<version>3.6</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${version.jar.plugin}</version>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
<manifestEntries>
<!--
Develocity (gradle-enterprise-maven-extension) can reduce the build duration using its cache only for deterministic build.
'Build-Time', defined in the parent pom, changes at each build and prevents us from benefiting from the cache.
We didn't find a solution to unset 'Build-Time', so as a workaround, we provide a constant value '_'.
-->
<Build-Time>_</Build-Time>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>com.gradle</groupId>
<artifactId>gradle-enterprise-maven-extension</artifactId>
<configuration>
<gradleEnterprise>
<normalization>
<runtimeClassPath>
<metaInf>
<ignoredAttributes>
<ignore>Implementation-Version</ignore>
<ignore>Version</ignore>
<ignore>Implementation-Build</ignore>
<ignore>Build-Time</ignore>
<ignore>Plugin-BuildDate</ignore>
<ignore>Plugin-Display-Version</ignore>
<ignore>Plugin-Version</ignore>
<ignore>Plugin-RequirePlugins</ignore>
</ignoredAttributes>
</metaInf>
</runtimeClassPath>
</normalization>
</gradleEnterprise>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>de.thetaphi</groupId>
<artifactId>forbiddenapis</artifactId>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
<configuration>
<failOnUnresolvableSignatures>false</failOnUnresolvableSignatures>
<signatures>
<![CDATA[
com.google.common.base.Preconditions#checkNotNull(java.lang.Object) @ use java.util.Objects#requireNonNull(java.lang.Object) instead
com.google.common.collect.ImmutableList#of(java.lang.Object) @ use java.util.Collections#singletonList(java.util.Objects#requireNonNull(java.lang.Object)) instead, and also consider omitting unnecessary null-checks
com.google.common.collect.ImmutableSet#of(java.lang.Object) @ use java.util.Collections#singleton(java.util.Objects#requireNonNull(java.lang.Object)) instead, and also consider omitting unnecessary null-checks
com.google.common.collect.ImmutableList#of() @ use java.util.Collections#emptyList() instead
com.google.common.collect.ImmutableSet#of() @ use java.util.Collections#emptySet() instead
# According to javadoc of following methods
# "for Java 7 and later: this method is now unnecessary and should be treated as deprecated"
@defaultMessage use diamond operator instead
com.google.common.collect.Lists#newArrayList()
com.google.common.collect.Lists#newLinkedList()
com.google.common.collect.Maps#newHashMap()
com.google.common.collect.Sets#newHashSet()
com.google.common.base.Objects @ use java.util.Objects instead
]]>
</signatures>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<runOrder>alphabetical</runOrder>
<environmentVariables>
<M2_REPO>${settings.localRepository}</M2_REPO>
</environmentVariables>
</configuration>
</plugin>
</plugins>
</build>
</project>