-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
402 lines (364 loc) · 13.7 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"?>
<!--
~ ANTLR4 Parameterized Visitor
~ Copyright (c) 2019 Niels Basjes. All rights reserved.
~ Use of this file is governed by the BSD 3-clause license.
-->
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>nl.basjes.antlr</groupId>
<version>1.0.1-4.13.2-NEXT-SNAPSHOT</version>
<artifactId>antlr4-pvisitor-parent</artifactId>
<packaging>pom</packaging>
<name>Antlr4 PVisitor: </name>
<description>A modified version of the Antlr4 Visitor.</description>
<url>https://github.com/nielsbasjes/antlr4-pvisitor</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.outputEncoding>UTF-8</project.build.outputEncoding>
<jdkLevel>1.8</jdkLevel>
<maven.compiler.source>${jdkLevel}</maven.compiler.source>
<maven.compiler.target>${jdkLevel}</maven.compiler.target>
<!-- In order for everything to work correctly we need at least this version of maven. -->
<maven.minimal.version>3.6.0</maven.minimal.version>
<antlr.version>4.13.2</antlr.version>
<slf4j.version>2.0.16</slf4j.version>
<git-commit-id-plugin.version>9.0.1</git-commit-id-plugin.version>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin><artifactId>maven-assembly-plugin</artifactId><version>3.7.1</version></plugin>
<plugin><artifactId>maven-clean-plugin</artifactId><version>3.4.0</version></plugin>
<plugin><artifactId>maven-compiler-plugin</artifactId><version>3.13.0</version></plugin>
<plugin><artifactId>maven-deploy-plugin</artifactId><version>3.1.3</version></plugin>
<plugin><artifactId>maven-enforcer-plugin</artifactId><version>3.5.0</version></plugin>
<plugin><artifactId>maven-install-plugin</artifactId><version>3.1.3</version></plugin>
<plugin><artifactId>maven-jar-plugin</artifactId><version>3.4.2</version></plugin>
<plugin><artifactId>maven-javadoc-plugin</artifactId><version>3.10.0</version></plugin>
<plugin><artifactId>maven-resources-plugin</artifactId><version>3.3.1</version></plugin>
<plugin><artifactId>maven-shade-plugin</artifactId><version>3.6.0</version></plugin>
<plugin><artifactId>maven-site-plugin</artifactId><version>3.20.0</version></plugin>
<plugin><artifactId>maven-source-plugin</artifactId><version>3.3.1</version></plugin>
<plugin><artifactId>maven-surefire-plugin</artifactId><version>3.5.0</version></plugin>
<plugin><artifactId>maven-war-plugin</artifactId><version>3.4.0</version></plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.17.1</version>
<configuration>
<rulesUri>classpath:///maven-version-rules.xml</rulesUri>
</configuration>
<dependencies>
<dependency>
<groupId>nl.basjes.antlr</groupId>
<artifactId>devtools</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>[${maven.minimal.version},)</version>
<message>You must use Maven version ${maven.minimal.version} or newer to build this project.</message>
<!-- Reasons for this need: -->
<!-- https://issues.apache.org/jira/browse/MDEPLOY-221 -->
<!-- https://issues.apache.org/jira/browse/MNG-6581 -->
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>packageForRelease</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.10.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- explicitly define maven-deploy-plugin after other to force exec order -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.3</version>
<executions>
<execution>
<id>deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- Description: https://github.com/git-commit-id/git-commit-id-maven-plugin -->
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>${git-commit-id-plugin.version}</version>
<executions>
<execution>
<id>Validate-Revision-Information</id>
<phase>validate</phase>
<goals>
<goal>validateRevision</goal>
</goals>
<configuration>
<validationProperties>
<!-- verify that the current repository is not dirty -->
<validationProperty>
<name>Don't try to release if something has not yet been committed.</name>
<!--suppress UnresolvedMavenProperty -->
<value>${git.dirty}</value>
<shouldMatchTo>false</shouldMatchTo>
</validationProperty>
</validationProperties>
<validationShouldFailIfNoMatch>true</validationShouldFailIfNoMatch>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<!-- Description: https://github.com/git-commit-id/git-commit-id-maven-plugin -->
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>${git-commit-id-plugin.version}</version>
<executions>
<execution>
<id>Validate-Revision-Information</id>
<phase>validate</phase>
<goals>
<goal>validateRevision</goal>
</goals>
<configuration>
<validationProperties>
<!-- verify that the current repository is not dirty -->
<validationProperty>
<name>Don't try to release if something has not yet been committed.</name>
<!--suppress UnresolvedMavenProperty -->
<value>${git.dirty}</value>
<shouldMatchTo>false</shouldMatchTo>
</validationProperty>
<!-- verify that the current commit has a tag -->
<validationProperty>
<name>validating current commit has a tag</name>
<!--suppress UnresolvedMavenProperty -->
<value>${git.closest.tag.commit.count}</value>
<shouldMatchTo>0</shouldMatchTo>
</validationProperty>
</validationProperties>
<validationShouldFailIfNoMatch>true</validationShouldFailIfNoMatch>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<id>dependency-convergence</id>
<phase>validate</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<dependencyConvergence/>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>EnableReportPlugins</id>
<activation>
<property>
<name>EnableReportPlugins</name>
</property>
<jdk>1.8</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.3.0</version>
<configuration>
<timestampFormat>EpochMillis</timestampFormat>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>SkipSonarBecauseItWasNotConfigured</id>
<activation>
<property>
<name>!env.SONAR_TOKEN</name>
</property>
</activation>
<properties>
<sonar.skip>true</sonar.skip>
</properties>
</profile>
<profile>
<id>Build with JDK 8</id>
<activation>
<jdk>1.8</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<compilerVersion>${jdkLevel}</compilerVersion>
<source>${jdkLevel}</source>
<target>${jdkLevel}</target>
<compilerArgs>
<!-- Enable almost all warnings.-->
<!-- Ignore the 'serial' warnings about not having a serialVersionUID -->
<arg>-Xlint:all,-serial</arg>
<arg>-Werror</arg>
</compilerArgs>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>Build with JDK 11+</id>
<activation>
<jdk>[1.11,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<compilerVersion>${jdkLevel}</compilerVersion>
<source>${jdkLevel}</source>
<target>${jdkLevel}</target>
<compilerArgs>
<!-- Enable almost all warnings.-->
<!-- Ignore the 'serial' warnings about not having a serialVersionUID -->
<!-- Ignore warning about source and target 8 becoming obsolete -->
<arg>-Xlint:all,-serial,-options</arg>
<arg>-Werror</arg>
<arg>-implicit:class</arg>
</compilerArgs>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
<release>8</release>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<modules>
<module>devtools</module>
<module>antlr4-pvisitor</module>
<module>demonstration</module>
</modules>
<licenses>
<license>
<name>The BSD License</name>
<url>https://www.antlr.org/license.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<name>Niels Basjes</name>
<email>niels@basjes.nl</email>
<roles>
<role>Architect</role>
<role>Developer</role>
</roles>
<timezone>Europe/Amsterdam</timezone>
</developer>
</developers>
<scm>
<url>https://github.com/nielsbasjes/antlr4-pvisitor</url>
<connection>scm:git:https://github.com/nielsbasjes/antlr4-pvisitor.git</connection>
<developerConnection>scm:git:file:///${project.basedir}</developerConnection>
</scm>
</project>