forked from FasterXML/jackson-databind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
435 lines (404 loc) · 16.8 KB
/
pom.xml
File metadata and controls
435 lines (404 loc) · 16.8 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
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
<?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/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-databind</artifactId>
<version>3.2.0-SNAPSHOT</version>
<name>jackson-databind</name>
<description>General data-binding functionality for Jackson: works on core streaming API</description>
<url>https://github.com/FasterXML/jackson</url>
<inceptionYear>2008</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>
<scm>
<connection>scm:git:git@github.com:FasterXML/jackson-databind.git</connection>
<developerConnection>scm:git:git@github.com:FasterXML/jackson-databind.git</developerConnection>
<url>https://github.com/FasterXML/jackson-databind</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>
<!-- 27-Feb-2025, tatu: [databind#4995] define common argline to avoid
issues with Eclipse/Idea/surefire-plugin
-->
<argLine>--add-opens=java.base/java.lang=tools.jackson.databind
--add-opens=java.base/java.util=tools.jackson.databind
</argLine>
<version.bytebuddy>1.18.4</version.bytebuddy>
<version.mockito>5.21.0</version.mockito>
<!-- 07-Mar-2025, tatu: For some reason, release fails due to missing
jacoco... so disable for now
-->
<jacocoStrict>false</jacocoStrict>
<!-- Can not use default, since group id != Java package name here -->
<osgi.export>tools.jackson.databind.*;version=${project.version}</osgi.export>
<!-- fix for databind#2299: using jackson-databind in an OSGi environment under Android -->
<osgi.import>
org.w3c.dom.bootstrap;resolution:=optional,
*
</osgi.import>
<!-- Generate PackageVersion.java into this directory. -->
<packageVersion.dir>tools/jackson/databind/cfg</packageVersion.dir>
<packageVersion.package>tools.jackson.databind.cfg</packageVersion.package>
<!-- for Reproducible Builds -->
<project.build.outputTimestamp>2026-02-23T21:12:24Z</project.build.outputTimestamp>
</properties>
<dependencyManagement>
<dependencies>
<!-- We need to specify later Bytebuddy version because Mockito 4.11.0 depends on earlier
Bytebuddy which does not support JDK 21, since 2.17-->
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>${version.bytebuddy}</version>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-agent</artifactId>
<version>${version.bytebuddy}</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- Builds on core streaming API; also needs core annotations -->
<dependency>
<!-- 14-Jul-2022, tatu: Note! Annotations remain at Jackson 2.x group id -->
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<!-- 06-Mar-2017, tatu: Although bom provides for dependencies, some legacy
usage seems to benefit from actually specifying version here in case
it is dependent on transitively
-->
<version>${jackson.version.annotations}</version>
</dependency>
<dependency>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version.core}</version>
</dependency>
<!-- Test dependencies -->
<!-- 13-Jan-2025, tatu: Use the new (in 3.0) shared core test-jar
for some shared test functionality.
-->
<!-- 29-Jan-2025, tatu: Alas! Just does not seem to work, comment out
-->
<!--
<dependency>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version.core}</version>
<classifier>tests</classifier>
<type>test-jar</type>
<scope>test</scope>
</dependency>
-->
<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.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava-testlib</artifactId>
<version>32.0.1-jre</version>
<scope>test</scope>
</dependency>
<!-- Since 2.17, started using Mockito instead of Powermock -->
<!-- For testing with static methods -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${version.mockito}</version>
<scope>test</scope>
</dependency>
</dependencies>
<!-- 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.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<inherited>true</inherited>
<configuration>
<compilerArgs>
<!-- Must ensure parameter names compiled (for tests) -->
<arg>-parameters</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin> <!-- default settings are fine, just need to enable here -->
<!-- Inherited from oss-base. Generate PackageVersion.java.-->
<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>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<links combine.children="append">
<!-- 08-Aug-2025, tatu: 3.x retains dep to annotations 2.x -->
<link>https://javadoc.io/doc/com.fasterxml.jackson.core/jackson-annotations/latest</link>
<link>https://javadoc.io/doc/tools.jackson.core/jackson-core/latest</link>
</links>
</configuration>
</plugin>
<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>
<!-- 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.gradlex</groupId>
<artifactId>gradle-module-metadata-maven-plugin</artifactId>
</plugin>
<!-- 12-Nov-2022, tatu: [databind#3659] add verification of compatibility
wrt Android SDK versions using AnimalSniffer with "gummy bears" signatures.
-->
<!-- 24-Feb-2026, tatu: Starting with 3.2, use common defaults for ASDK level -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<configuration>
<ignores>
<!-- These are only accessed (safely) via "Java7SupportImpl.java" so ignore
-->
<ignore>java.beans.ConstructorProperties</ignore>
<ignore>java.beans.Transient</ignore>
<!-- 08-Dec-2024, tatu: [databind#2593] need to ignore "StackTraceElement"
constructor(s)
-->
<ignore>java.lang.StackTraceElement</ignore>
<!-- 2025-03-24 scs: AnimalSniffer does not support @PolymorphicSignature
https://github.com/mojohaus/animal-sniffer/issues/67 -->
<ignore>java.lang.invoke.MethodHandle</ignore>
</ignores>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<properties>
<maven.test.skip>true</maven.test.skip>
<skipTests>true</skipTests>
</properties>
</profile>
<profile>
<!-- Different set up for JDK 21 tests (baseline JDK 17) -->
<id>java21</id>
<activation>
<jdk>[21,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-test-source</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>src/test-jdk21/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<inherited>true</inherited>
<configuration>
<!-- Enable Java 21 for all sources so that Intellij picks the right language level -->
<source>21</source>
<release>21</release>
<compilerArgs>
<arg>-parameters</arg>
</compilerArgs>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!-- 10-Nov-2020, tatu: Added via [databind#2931] -->
<profile>
<id>errorprone</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs>
<arg>-XDcompilePolicy=simple</arg>
<arg>
-Xplugin:ErrorProne
<!--
Disable all checks in test code. Bugs in tests can hide runtime failures,
however these can be enabled later on. Many issues may require sub-optional
code to reproduce failures.
-->
-XepExcludedPaths:.*/src/test/java/.*
<!-- ############### -->
<!-- UPGRADED CHECKS -->
<!-- ############### -->
<!-- Boxed primitive equality checks can be dangerous when presented with unexpected inputs -->
-Xep:BoxedPrimitiveEquality:ERROR
<!-- ############### -->
<!-- DISABLED CHECKS -->
<!-- ############### -->
<!-- UnusedVariable is great at catching mistakes quickly, but
requires a few suppressions to avoid noise. Deferring to avoid noise
with the introduction of ErrorProne. -->
-Xep:UnusedVariable:OFF
<!--
Disabled to avoid potential API changes. It's not clear if custom JsonNode types
exist, and if any do implement equals without hashCode, it's likely they cause bugs.
I plan to try fixing this separately.
-->
-Xep:EqualsHashCode:OFF
<!-- Style: javadoc tag validation -->
-Xep:MissingSummary:OFF
-Xep:InvalidInlineTag:OFF
-Xep:EmptyBlockTag:OFF
-Xep:AlmostJavadoc:OFF
-Xep:InvalidLink:OFF
<!-- Style: low reward for enabling. -->
-Xep:UnnecessaryParentheses:OFF
<!-- Style: low signal -->
-Xep:InconsistentCapitalization:OFF
<!-- Style: requires specific comments when switch branches neither break nor return -->
-Xep:FallThrough:OFF
<!-- Style: disable noisy check for importing common names from nested classes -->
-Xep:BadImport:OFF
<!-- Style: requires a default case when not all cases are handled -->
-Xep:MissingCasesInEnumSwitch:OFF
<!-- Style: avoid clashes with java.lang. Possibly worth enabling, but this can be done later -->
-Xep:JavaLangClash:OFF
<!-- These can likely be updated from protected to private, but it's relatively low signal -->
-Xep:ProtectedMembersInFinalClass:OFF
<!-- These can likely be updated from public to protected, but it's relatively low signal -->
-Xep:PublicConstructorForAbstractClass:OFF
<!-- jackson-databind doesn't have a logger, in many cases there's no way to pre-validate inputs -->
-Xep:EmptyCatch:OFF
-Xep:EqualsGetClass:OFF
<!-- Noisy check that's largely unnecessary unless the result is mutated.
Returning only immutable collections requires additional overhead and
impact must be carefully considered. -->
-Xep:MixedMutabilityReturnType:OFF
<!-- Noisy in jackson and libraries which must interact with generics -->
-Xep:TypeParameterUnusedInFormals:OFF
<!-- Check is noisy around code that's meant to handle types that are considered obsolete -->
-Xep:JdkObsolete:OFF
<!-- Avoid noise from tests -->
-Xep:JUnit3FloatingPointComparisonWithoutDelta:OFF
<!-- Disable the StringSplitter check because it requires a guava dependency -->
-Xep:StringSplitter:OFF
<!-- Disable checks which require custom annotations -->
-Xep:AnnotateFormatMethod:OFF
-Xep:GuardedBy:OFF
<!-- This check is generally high signal, however it is noisy in
low level projects which implement caches and interning. -->
-Xep:ReferenceEquality:OFF
</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>2.36.0</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>