-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
274 lines (262 loc) · 13.1 KB
/
pom.xml
File metadata and controls
274 lines (262 loc) · 13.1 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ SPDX-FileCopyrightText: The devcontainer.java Authors
~ SPDX-License-Identifier: 0BSD
-->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
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>
<!-- ordering follows https://maven.apache.org/developers/conventions/code.html#POM_Code_Convention -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- PARENT -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- https://maven.apache.org/pom.html#Inheritance -->
<parent>
<groupId>wtf.metio.maven</groupId>
<artifactId>maven-parent</artifactId>
<version>2026.5.29</version>
</parent>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- COORDINATES -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- https://maven.apache.org/pom.html#Maven_Coordinates -->
<groupId>wtf.metio.devcontainer</groupId>
<artifactId>devcontainer.java</artifactId>
<version>0.0.0-SNAPSHOT</version>
<packaging>jar</packaging>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- INFORMATIONS -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- https://maven.apache.org/pom.html#More_Project_Information -->
<name>devcontainer.java</name>
<description>Java implementation of the devcontainer file specification</description>
<url>https://github.com/metio/devcontainer.java</url>
<inceptionYear>2022</inceptionYear>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- SCM -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- https://maven.apache.org/pom.html#SCM -->
<scm>
<connection>scm:git:git@github.com:metio/devcontainer.java.git</connection>
<developerConnection>scm:git:git@github.com:metio/devcontainer.java.git</developerConnection>
<tag>HEAD</tag>
<url>https://github.com/metio/devcontainer.java</url>
</scm>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- ISSUE MANAGEMENT -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- https://maven.apache.org/pom.html#Issue_Management -->
<issueManagement>
<system>GitHub</system>
<url>https://github.com/metio/devcontainer.java/issues</url>
</issueManagement>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- PROPERTIES -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- https://maven.apache.org/pom.html#Properties -->
<properties>
<global.jdkVersion>25</global.jdkVersion>
<version.jackson>3.1.4</version.jackson>
<version.record-builder>52</version.record-builder>
<version.junit>6.1.0</version.junit>
</properties>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- DEPENDENCY MANAGEMENT -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- https://maven.apache.org/pom.html#Dependency_Management -->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>tools.jackson</groupId>
<artifactId>jackson-bom</artifactId>
<version>${version.jackson}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${version.junit}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- DEPENDENCIES -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- https://maven.apache.org/pom.html#Dependencies -->
<dependencies>
<dependency>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>io.soabase.record-builder</groupId>
<artifactId>record-builder-core</artifactId>
<version>${version.record-builder}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>io.soabase.record-builder</groupId>
<artifactId>record-builder-processor</artifactId>
<version>${version.record-builder}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<!-- Declaring the plugin activates the parent's managed check + cpd-check executions (both
bound to verify). PMD 7.x is pinned because the bundled engine must parse JDK 25 sources;
the focused ruleset keeps violations actionable. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<configuration>
<printFailingErrors>true</printFailingErrors>
<failOnViolation>true</failOnViolation>
<minimumTokens>100</minimumTokens>
<rulesets>
<ruleset>config/pmd/ruleset.xml</ruleset>
</rulesets>
<!-- record-builder emits many near-identical wither methods; analysing that
generated source only produces noise, so it is left out of source and CPD scans. -->
<excludeRoots>
<excludeRoot>${project.build.directory}/generated-sources/annotations</excludeRoot>
</excludeRoots>
</configuration>
<dependencies>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-core</artifactId>
<version>7.25.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-java</artifactId>
<version>7.25.0</version>
</dependency>
</dependencies>
</plugin>
<!-- The parent only manages the SpotBugs version; this binds its analysis to verify. The
exclude filter drops findings inherent to an immutable record data model (records that
hold List/Map necessarily expose them through the canonical accessor/constructor). -->
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<configuration>
<effort>Max</effort>
<excludeFilterFile>config/spotbugs/exclude.xml</excludeFilterFile>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
</plugin>
<!-- Declaring the plugin activates the parent's managed JaCoCo agent + check executions, which
gate verify at 100% coverage (jacoco.minCoverage). The only configuration needed here is the
exclude set: the record-builder *Builder classes are generated (not ours to test, mirroring
the PMD/SpotBugs stance) and the native smoke stand-in runs as a native executable rather
than under the agent, so both are kept out of the coverage analysis. -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/*Builder.class</exclude>
<exclude>**/*Builder$*.class</exclude>
<exclude>**/NativeImageSmokeTest.class</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<!-- Verifies the library can be consumed by a GraalVM native image. The profile compiles a
stand-in consumer (src/native/java), builds it into a native image the same way a
downstream project such as ilo would, and runs it. Building exercises the records and
reflect-config.json; running surfaces any missing runtime reflection metadata. The
stand-in source is only added here, so it stays out of the published jar. -->
<profile>
<id>native</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.6.1</version>
<executions>
<execution>
<id>add-native-smoke-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/native/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<imageName>devcontainer-native-smoke</imageName>
<mainClass>wtf.metio.devcontainer.NativeImageSmokeTest</mainClass>
</configuration>
<executions>
<execution>
<id>build-native-smoke</id>
<goals>
<goal>compile-no-fork</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>run-native-smoke</id>
<phase>verify</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${project.build.directory}/devcontainer-native-smoke</executable>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>