-
Notifications
You must be signed in to change notification settings - Fork 8
/
pom.xml
572 lines (507 loc) · 20.9 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
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2023 - 2024, Ashley Scopes.
Licensed 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>
<groupId>io.github.ascopes</groupId>
<artifactId>protobuf-maven-plugin-parent</artifactId>
<version>2.7.3-SNAPSHOT</version>
<name>Protobuf Maven Plugin Parent</name>
<description>Parent POM for the Protobuf Maven Plugin.</description>
<packaging>pom</packaging>
<modules>
<module>protobuf-maven-plugin</module>
<!-- Integration tests within the protobuf-maven-plugin module will also be derived
from this parent POM, but are not explicitly listed as modules directly. -->
</modules>
<inceptionYear>2023</inceptionYear>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>https://raw.githubusercontent.com/ascopes/protobuf-maven-plugin/main/LICENSE.txt</url>
</license>
</licenses>
<developers>
<developer>
<id>ascopes</id>
<name>Ashley Scopes</name>
<email>[email protected]</email>
<url>https://github.com/ascopes</url>
<organization>Ashley Scopes</organization>
<organizationUrl>https://github.com/ascopes</organizationUrl>
<roles>
<role>Developer</role>
</roles>
<timezone>Europe/London</timezone>
</developer>
</developers>
<contributors />
<distributionManagement>
<repository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<site>
<id>github-pages</id>
<name>github-pages</name>
<url>https://ascopes.github.io/protobuf-maven-plugin</url>
</site>
</distributionManagement>
<issueManagement>
<system>GitHub Issues</system>
<url>https://github.com/ascopes/protobuf-maven-plugin/issues</url>
</issueManagement>
<organization>
<name>Ashley Scopes (GitHub)</name>
<url>https://github.com/ascopes</url>
</organization>
<url>https://github.com/ascopes/protobuf-maven-plugin</url>
<scm>
<url>https://github.com/ascopes/protobuf-maven-plugin</url>
<connection>scm:git:https://github.com/ascopes/protobuf-maven-plugin</connection>
<developerConnection>scm:git:https://github.com/ascopes/protobuf-maven-plugin
</developerConnection>
<tag>HEAD</tag>
</scm>
<properties>
<!-- Dependencies -->
<assertj.version>3.26.3</assertj.version>
<immutables.version>2.10.1</immutables.version>
<jackson-bom.version>2.18.2</jackson-bom.version>
<javax-annotation.version>1.3.2</javax-annotation.version>
<jspecify.version>1.0.0</jspecify.version>
<junit.version>5.11.3</junit.version>
<maven-core.version>3.9.9</maven-core.version>
<maven-plugin-annotations.version>3.15.1</maven-plugin-annotations.version>
<maven-plugin-api.version>3.9.9</maven-plugin-api.version>
<maven-resolver-api.version>2.0.4</maven-resolver-api.version>
<memoryfilesystem.version>2.8.1</memoryfilesystem.version>
<mockito.version>5.14.2</mockito.version>
<slf4j.version>2.0.16</slf4j.version>
<!-- Plugins -->
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
<license-maven-plugin.version>4.6</license-maven-plugin.version>
<maven-assembly-plugin.version>3.7.1</maven-assembly-plugin.version>
<maven-checkstyle-plugin.version>3.6.0</maven-checkstyle-plugin.version>
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
<maven-dependency-plugin.version>3.8.1</maven-dependency-plugin.version>
<maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version>
<maven-install-plugin.version>3.1.3</maven-install-plugin.version>
<maven-invoker-plugin.version>3.8.1</maven-invoker-plugin.version>
<maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
<maven-javadoc-plugin.version>3.11.2</maven-javadoc-plugin.version>
<maven-jxr-plugin.version>3.6.0</maven-jxr-plugin.version>
<maven-plugin-plugin.version>3.15.1</maven-plugin-plugin.version>
<maven-plugin-report-plugin.version>3.15.1</maven-plugin-report-plugin.version>
<maven-project-info-reports-plugin.version>3.8.0</maven-project-info-reports-plugin.version>
<maven-release-plugin.version>3.1.1</maven-release-plugin.version>
<maven-site-plugin.version>4.0.0-M16</maven-site-plugin.version>
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
<maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version>
<sisu-maven-plugin.version>0.3.5</sisu-maven-plugin.version>
<!-- Plugin dependencies -->
<checkstyle.version>10.20.2</checkstyle.version>
<maven-surefire-junit5-tree-reporter.version>1.4.0</maven-surefire-junit5-tree-reporter.version>
<!--
- Force bytebuddy experimental support for some exotic platforms.
- Enable trace logs for our code for diagnostics.
- Enable the loading of dynamic agents to remove warnings about ByteBuddy loading
itself at runtime which now are raised as of Java 22.
-->
<argLine>
-Xshare:off
-Dnet.bytebuddy.experimental=true
-Dorg.slf4j.simpleLogger.log.io.github.ascopes=TRACE
-XX:+EnableDynamicAgentLoading
</argLine>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson</groupId>
<artifactId>jackson-bom</artifactId>
<version>${jackson-bom.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.github.marschall</groupId>
<artifactId>memoryfilesystem</artifactId>
<version>${memoryfilesystem.version}</version>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>${javax-annotation.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>${maven-plugin-api.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>${maven-plugin-annotations.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-api</artifactId>
<version>${maven-resolver-api.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${maven-core.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>${assertj.version}</version>
</dependency>
<dependency>
<groupId>org.immutables</groupId>
<artifactId>value</artifactId>
<version>${immutables.version}</version>
</dependency>
<dependency>
<groupId>org.jspecify</groupId>
<artifactId>jspecify</artifactId>
<version>${jspecify.version}</version>
</dependency>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${junit.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-bom</artifactId>
<version>${mockito.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-bom</artifactId>
<version>${slf4j.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<!-- Plugins to run on all subprojects implicitly. -->
<plugins>
<plugin>
<!-- This is an aggregate so only needs to be applied once. -->
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<inherited>false</inherited>
</plugin>
<plugin>
<!-- This has no option for aggregation but derived projects must specify the
relativePath attribute so that locations of the checkstyle config file resolve
correctly from the parent in ITs -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
</plugin>
</plugins>
<!-- Management for optional plugins. -->
<pluginManagement>
<plugins>
<plugin>
<!-- Enforces our license header and allows adding it automatically to code. -->
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>${license-maven-plugin.version}</version>
<configuration>
<!-- Useful flags: https://mycila.carbou.me/license-maven-plugin/ -->
<aggregate>true</aggregate>
<licenseSets>
<licenseSet>
<header>.mvn/license/license-header.txt</header>
<includes>
<include>**/src/**/*.groovy</include>
<include>**/src/**/*.java</include>
<include>**/src/**/*.kt</include>
<include>**/src/**/*.properties</include>
<include>**/src/**/*.proto</include>
<include>**/src/**/*.scala</include>
<include>**/*.xml</include>
</includes>
<excludes>
<exclude>.mvn/checkstyle/checkstyle.xml</exclude>
</excludes>
</licenseSet>
</licenseSets>
<mapping>
<java>SLASHSTAR_STYLE</java>
</mapping>
<properties>
<currentYear>2024</currentYear>
<inceptionYear>${project.inceptionYear}</inceptionYear>
</properties>
<strictCheck>true</strictCheck>
</configuration>
<executions>
<execution>
<id>validate-license-headers</id>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- Used for integration testing to create ZIP archives. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven-assembly-plugin.version}</version>
</plugin>
<plugin>
<!-- Used for Mockito agent support in JDK21+. We have to know the JAR path of the dependency. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${maven-dependency-plugin.version}</version>
</plugin>
<plugin>
<!-- Checking style of code matches the Google code style. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${maven-checkstyle-plugin.version}</version>
<configuration>
<configLocation>.mvn/checkstyle/checkstyle.xml</configLocation>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<includeResources>true</includeResources>
<sourceDirectories>${project.basedir}/src</sourceDirectories>
<suppressionsLocation>.mvn/checkstyle/suppressions.xml</suppressionsLocation>
<violationSeverity>info</violationSeverity>
</configuration>
<executions>
<execution>
<id>check-code-style</id>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<!-- Force the usage of checkstyle v10 rather than v8.28 -->
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>${checkstyle.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<!-- Java compiler config. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<compilerArgs>
<compilerArg>-Xlint:all,-classfile,-processing,-requires-automatic,-serial</compilerArg>
</compilerArgs>
<failOnWarning>true</failOnWarning>
<proc>full</proc>
<showDeprecation>true</showDeprecation>
<release>11</release>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>${maven-install-plugin.version}</version>
</plugin>
<plugin>
<!-- Runs integration tests. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<version>${maven-invoker-plugin.version}</version>
</plugin>
<plugin>
<!-- Add additional entries to the JAR's MANIFEST.MF. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<configuration>
<archive>
<index>true</index>
<manifest>
<addBuildEnvironmentEntries>true</addBuildEnvironmentEntries>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
<addExtensions>true</addExtensions>
</manifest>
<manifestEntries>
<Sealed>true</Sealed>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<!-- Generate plugin descriptors. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>${maven-plugin-plugin.version}</version>
</plugin>
<plugin>
<!-- Create site info pages. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>${maven-project-info-reports-plugin.version}</version>
</plugin>
<plugin>
<!-- Deployments and version incrementing. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>${maven-release-plugin.version}</version>
<configuration>
<!-- Don't test when making the tag, as we've already tested
by this point. -->
<arguments>-Dmaven.test.skip -Dinvoker.skip</arguments>
<goals>deploy</goals>
<releaseProfiles>gpg</releaseProfiles>
<preparationGoals>clean verify</preparationGoals>
</configuration>
</plugin>
<plugin>
<!-- Generate the plugin site. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>${maven-site-plugin.version}</version>
<configuration>
<!-- Fixes links pointing to the wrong place. -->
<relativizeSiteLinks>false</relativizeSiteLinks>
<!-- Strict validation. -->
<validate>true</validate>
</configuration>
</plugin>
<plugin>
<!-- Bundles project sources into an additional JAR for release. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
</plugin>
<plugin>
<!-- Unit testing. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<consoleOutputReporter>
<disable>true</disable>
</consoleOutputReporter>
<!--
This block is needed to show @DisplayName and @ParameterizedTest
in reports with the provided names.
-->
<statelessTestsetReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5Xml30StatelessReporter">
<disable>false</disable>
<version>3.0</version>
<usePhrasedFileName>false</usePhrasedFileName>
<usePhrasedTestSuiteClassName>true</usePhrasedTestSuiteClassName>
<usePhrasedTestCaseClassName>true</usePhrasedTestCaseClassName>
<usePhrasedTestCaseMethodName>true</usePhrasedTestCaseMethodName>
</statelessTestsetReporter>
<statelessTestsetInfoReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoTreeReporter">
<disable>false</disable>
<printStacktraceOnError>true</printStacktraceOnError>
<printStacktraceOnFailure>true</printStacktraceOnFailure>
<usePhrasedFileName>false</usePhrasedFileName>
<usePhrasedClassNameInRunning>true</usePhrasedClassNameInRunning>
<usePhrasedClassNameInTestCaseSummary>true</usePhrasedClassNameInTestCaseSummary>
</statelessTestsetInfoReporter>
</configuration>
<dependencies>
<dependency>
<groupId>me.fabriciorby</groupId>
<artifactId>maven-surefire-junit5-tree-reporter</artifactId>
<version>${maven-surefire-junit5-tree-reporter.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<!-- Generates JSR-330 CDI configuration data to enable using dependency injection. -->
<groupId>org.eclipse.sisu</groupId>
<artifactId>sisu-maven-plugin</artifactId>
<version>${sisu-maven-plugin.version}</version>
<executions>
<execution>
<id>generate-index</id>
<goals>
<goal>main-index</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- Code coverage. -->
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>gpg</id>
<build>
<plugins>
<plugin>
<!-- GPG signing of build artifacts, required by Maven
Central. We only enable this via a profile so that
forks do not have to register GPG keys to be able
to build. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven-gpg-plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>