-
-
Notifications
You must be signed in to change notification settings - Fork 883
Expand file tree
/
Copy pathpom.xml
More file actions
413 lines (390 loc) · 15.7 KB
/
pom.xml
File metadata and controls
413 lines (390 loc) · 15.7 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
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
<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">
<!-- This module was also published with a richer model, Gradle metadata, -->
<!-- which should be used instead. Do not delete the following line which -->
<!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
<!-- that they should prefer consuming it instead. -->
<!-- do_not_remove: published-with-gradle-metadata -->
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>tools.jackson</groupId>
<artifactId>jackson-base</artifactId>
<version>3.2.0-SNAPSHOT</version>
</parent>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<name>Jackson-core</name>
<version>3.2.0-SNAPSHOT</version>
<packaging>jar</packaging>
<description>Core Jackson processing abstractions (aka Streaming API), implementation for JSON</description>
<inceptionYear>2007</inceptionYear>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<!-- 03-Oct-2025, tatu: Should NOT be needed (available via parent);
but seems to be
-->
<developers>
<developer>
<id>cowtowncoder</id>
<name>Tatu Saloranta</name>
<email>tatu@fasterxml.com</email>
</developer>
</developers>
<url>https://github.com/FasterXML/jackson-core</url>
<scm>
<connection>scm:git:https://github.com/FasterXML/jackson-core.git</connection>
<developerConnection>scm:git:git@github.com:FasterXML/jackson-core.git</developerConnection>
<url>http://github.com/FasterXML/jackson-core</url>
<tag>HEAD</tag>
</scm>
<properties>
<!-- [databind#4820]: Java 17 baseline -->
<javac.src.version>17</javac.src.version>
<javac.target.version>17</javac.target.version>
<!-- Baseline Android SDK compatibility:
* Jackson 3.0 compatible with Android SDK 26 and up
-->
<version.android.sdk>34</version.android.sdk>
<version.android.sdk.signature>0.12.0</version.android.sdk.signature>
<version.plugin.animal-sniffer>1.27</version.plugin.animal-sniffer>
<osgi.export>tools.jackson.core;version=${project.version},
tools.jackson.core.*;version=${project.version}
</osgi.export>
<osgi.import>!ch.randelshofer.fastdoubleparser, *</osgi.import>
<!-- Generate PackageVersion.java into this directory. -->
<packageVersion.dir>tools/jackson/core/json</packageVersion.dir>
<packageVersion.package>${project.groupId}.json</packageVersion.package>
<!-- for Reproducible Builds -->
<project.build.outputTimestamp>2026-01-28T03:43:50Z</project.build.outputTimestamp>
<!-- for validation of JaCoCo execution -->
<jacocoStrict>false</jacocoStrict>
</properties>
<!-- Alas, need to include snapshot reference since otherwise can not find
snapshot of parent... -->
<repositories>
<!-- 13-May-2025, tatu: and now moving to Central Portal -->
<repository>
<id>central-snapshots</id>
<name>Sonatype Central Portal (snapshots)</name>
<url>https://central.sonatype.com/repository/maven-snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
<!-- Important: enable enforcer plug-in: -->
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<executions> <!-- or? combine.children="merge"> -->
<execution>
<id>enforce-properties</id>
<phase>validate</phase>
<goals><goal>enforce</goal></goals>
</execution>
<execution>
<id>enforce-jacoco-exec</id>
<phase>verify</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireFilesExist>
<files>
<file>${project.build.directory}/jacoco.exec</file>
</files>
</requireFilesExist>
</rules>
<fail>${jacocoStrict}</fail>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-testCompile</id>
<configuration>
<compilerArgs>
<!-- 11-Dec-2025: [core#1517] Need to open up Schubfach to unit tests -->
<arg>--add-exports</arg>
<arg>tools.jackson.core/tools.jackson.core.io.schubfach=tools.jackson.core.unittest</arg>
</compilerArgs>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${version.plugin.surefire}</version>
<configuration>
<redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile>
<!-- 11-Dec-2025: [core#1517] Need to open up Schubfach to unit tests -->
<argLine>@{argLine}
--add-exports tools.jackson.core/tools.jackson.core.io.schubfach=tools.jackson.core.unittest
--add-opens tools.jackson.core/tools.jackson.core.json=tools.jackson.core.unittest
</argLine>
</configuration>
</plugin>
<!-- Integration tests (run after packaging to verify shaded JAR) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<includes>
<include>**/*IT.java</include>
</includes>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin> <!-- default settings are fine, just need to enable here -->
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
</plugin>
<!-- 28-Apr-2025, tatu: SBOM generation [JSTEP-14] -->
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
</plugin>
<!-- 03-Nov-2020, tatu: Add LICENSE from main level -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<configuration>
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
<createDependencyReducedPom>true</createDependencyReducedPom>
<minimizeJar>true</minimizeJar>
</configuration>
<executions>
<execution>
<id>shade-jackson-core</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<filters>
<!-- Need to filter out FDP module-infos, don't need JDK11
versions (min JDK 17+).
-->
<filter>
<artifact>ch.randelshofer:fastdoubleparser</artifact>
<excludes>
<exclude>META-INF/LICENSE</exclude>
<exclude>META-INF/thirdparty-LICENSE</exclude>
<exclude>META-INF/MANIFEST.MF</exclude>
<exclude>META-INF/versions/**/module-info.*</exclude>
<exclude>META-INF/versions/11/**/*</exclude>
</excludes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>ch/randelshofer/fastdoubleparser</pattern>
<!-- 04-May-2024, tatu: [core#1264] Shade with version-specific package
to prevent reuse by downstream deps.
NOTE: `project.version.underscore' comes from `jackson-base/pom.xml`
parent pom
-->
<!-- 10-Jan-2025, tatu: while good idea pre-Modules (to break access),
won't mix well with JPMS. So let's not.
-->
<shadedPattern>tools/jackson/core/internal/shaded/fdp</shadedPattern>
</relocation>
<relocation>
<pattern>ch/randelshofer/fastdoubleparser/bte</pattern>
<shadedPattern>tools/jackson/core/internal/shaded/fdp/bte</shadedPattern>
</relocation>
<relocation>
<pattern>ch/randelshofer/fastdoubleparser/chr</pattern>
<shadedPattern>tools/jackson/core/internal/shaded/fdp/chr</shadedPattern>
</relocation>
<relocation>
<pattern>META-INF/jackson-core-LICENSE</pattern>
<shadedPattern>META-INF/LICENSE</shadedPattern>
</relocation>
<relocation>
<pattern>META-INF/jackson-core-NOTICE</pattern>
<shadedPattern>META-INF/NOTICE</shadedPattern>
</relocation>
<relocation>
<pattern>META-INF/versions/17/ch/randelshofer/fastdoubleparser</pattern>
<shadedPattern>META-INF/versions/17/tools/jackson/core/internal/shaded/fdp</shadedPattern>
</relocation>
<relocation>
<pattern>META-INF/versions/21/ch/randelshofer/fastdoubleparser</pattern>
<shadedPattern>META-INF/versions/21/tools/jackson/core/internal/shaded/fdp</shadedPattern>
</relocation>
<relocation>
<pattern>META-INF/versions/22/ch/randelshofer/fastdoubleparser</pattern>
<shadedPattern>META-INF/versions/22/tools/jackson/core/internal/shaded/fdp</shadedPattern>
</relocation>
<relocation>
<pattern>META-INF/versions/23/ch/randelshofer/fastdoubleparser</pattern>
<shadedPattern>META-INF/versions/23/tools/jackson/core/internal/shaded/fdp</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
<!-- 10-Jan-2025, tatu: [core#1380] Use Moditect to add `module-info.class`
at JAR root level. Must run AFTER shade plugin (declared after it here
so Maven executes it later in `package` phase) so shade cannot strip it.
Override parent's jvmVersion=17 via combine.self="override" so that
module-info.class is placed at root `/` rather than META-INF/versions/17/.
-->
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
<executions>
<execution>
<id>add-module-infos</id>
<phase>package</phase>
<goals>
<goal>add-module-info</goal>
</goals>
<configuration>
<overwriteExistingFiles>true</overwriteExistingFiles>
<module>
<moduleInfoFile>src/main/java/module-info.java</moduleInfoFile>
</module>
</configuration>
</execution>
</executions>
<!-- Override parent's jvmVersion=17: no jvmVersion means module-info.class
is placed at JAR root instead of META-INF/versions/17/
-->
<configuration combine.self="override">
</configuration>
</plugin>
<plugin>
<groupId>org.gradlex</groupId>
<artifactId>gradle-module-metadata-maven-plugin</artifactId>
<!-- 27-Apr-2023, tatu: [core#999]: Need to exclude shaded FDP dependency from GMM -->
<configuration>
<removedDependencies>
<dependency>
<groupId>ch.randelshofer</groupId>
<artifactId>fastdoubleparser</artifactId>
</dependency>
</removedDependencies>
</configuration>
</plugin>
<!-- Main Artifact build (jar) first -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Multi-Release>true</Multi-Release>
</manifestEntries>
</archive>
<!-- 10-Jan-2025, tatu: [core#1380] Exclude module-info.class from
initial jar so that shade plugin never sees it (shade strips
root-level module-info.class). Moditect re-adds it at root
after shade runs (see moditect plugin declaration below shade).
-->
<excludes>
<exclude>module-info.class</exclude>
</excludes>
</configuration>
</plugin>
<!-- And then Test JAR for other Jackson components -->
<!-- 26-Feb-2025, tatu: Does not work, comment out for now
-->
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>test-jar</id>
<phase>package</phase>
<goals>
<goal>test-jar</goal>
</goals>
<configuration>
<includes>
<include>module-info.*</include>
<include>tools/jackson/core/testutil/**/*.*</include>
</includes>
<excludes>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
-->
<!-- 16-Nov-2022, tatu: [core#838] add verification of compatibility
wrt Android SDK versions using AnimalSniffer with "gummy bears" signatures.
To be run from CI, but manually with:
mvn clean package animal-sniffer:check
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>${version.plugin.animal-sniffer}</version>
<configuration>
<signature>
<groupId>com.toasttab.android</groupId>
<artifactId>gummy-bears-api-${version.android.sdk}</artifactId>
<version>${version.android.sdk.signature}</version>
</signature>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<!-- 29-Nov-2022, tatu: As per [core#843] we now shade in fastdoubleparser -->
<dependency>
<groupId>ch.randelshofer</groupId>
<artifactId>fastdoubleparser</artifactId>
<version>2.0.1</version>
</dependency>
<!-- Test dependencies -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>