Skip to content

Commit 573cace

Browse files
committed
Patch jackson-core with locally modified class (elastic#92984)
while jackson 2.14.2 with FasterXML/jackson-core#882 is still not released we want to patch the jackson-core used by x-content with the modified class that fixes the bug elastic#92480 closes elastic#92480
1 parent 9064a10 commit 573cace

File tree

6 files changed

+1175
-1
lines changed

6 files changed

+1175
-1
lines changed

libs/x-content/impl/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ String jacksonVersion = "2.14.1"
1515
dependencies {
1616
compileOnly project(':libs:elasticsearch-core')
1717
compileOnly project(':libs:elasticsearch-x-content')
18-
implementation "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
18+
implementation project(path: ':libs:x-content:impl:es-jackson-core', configuration: 'shadow')
1919
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-smile:${jacksonVersion}"
2020
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:${jacksonVersion}"
2121
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:${jacksonVersion}"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License
4+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
5+
* in compliance with, at your election, the Elastic License 2.0 or the Server
6+
* Side Public License, v 1.
7+
*/
8+
9+
apply plugin: 'elasticsearch.build'
10+
apply plugin: 'com.github.johnrengelman.shadow'
11+
12+
String jacksonVersion = "2.14.1"
13+
14+
dependencies {
15+
implementation "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
16+
}
17+
18+
['jarHell', 'thirdPartyAudit', 'forbiddenApisMain', 'splitPackagesAudit', 'checkstyleMain', 'licenseHeaders', 'spotlessJavaCheck'].each {
19+
tasks.named(it).configure {
20+
enabled = false
21+
}
22+
}
23+
24+
tasks.named("dependencyLicenses").configure {
25+
mapping from: /jackson-.*/, to: 'jackson'
26+
}
27+
28+
shadowJar {
29+
manifest {
30+
attributes 'Multi-Release' : 'true'
31+
}
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
This copy of Jackson JSON processor streaming parser/generator is licensed under the
2+
Apache (Software) License, version 2.0 ("the License").
3+
See the License for details about distribution rights, and the
4+
specific rights regarding derivate works.
5+
6+
You may obtain a copy of the License at:
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Jackson JSON processor
2+
3+
Jackson is a high-performance, Free/Open Source JSON processing library.
4+
It was originally written by Tatu Saloranta ([email protected]), and has
5+
been in development since 2007.
6+
It is currently developed by a community of developers, as well as supported
7+
commercially by FasterXML.com.
8+
9+
## Licensing
10+
11+
Jackson core and extension components may licensed under different licenses.
12+
To find the details that apply to this artifact see the accompanying LICENSE file.
13+
For more information, including possible other licensing options, contact
14+
FasterXML.com (http://fasterxml.com).
15+
16+
## Credits
17+
18+
A list of contributors may be found from CREDITS file, which is included
19+
in some artifacts (usually source distributions); but is always available
20+
from the source code management (SCM) system project uses.

0 commit comments

Comments
 (0)