Skip to content

Commit

Permalink
[FLINK-35696] Shade com.jayway.jsonpath:json-path (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidwys authored Jun 27, 2024
1 parent b4f9ed2 commit b23e1a8
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 0 deletions.
80 changes: 80 additions & 0 deletions flink-shaded-jackson-parent/flink-shaded-jsonpath/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you 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/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-jackson-parent</artifactId>
<version>2.15.3-19.0</version>
</parent>

<artifactId>flink-shaded-jsonpath</artifactId>
<name>flink-shaded-jsonpath</name>
<!-- override version to jsonpath version -->
<version>2.7.0-19.0</version>

<dependencies>
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
<version>${jsonpath.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<!-- Jackson uses multi release jars and in case 2.15.x there is version 19
which is not supported by 3.3.x and below -->
<version>3.4.1</version>
<executions>
<execution>
<id>shade-flink</id>
<configuration>
<artifactSet>
<includes combine.children="append">
<include>com.jayway.jsonpath:json-path</include>
</includes>
</artifactSet>
<relocations combine.children="append">
<relocation>
<pattern>com.jayway.jsonpath</pattern>
<shadedPattern>${shading.prefix}.com.jayway.jsonpath
</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<!-- Used to resolve variables in the 'version' tag -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
flink-shaded-jsonpath
Copyright 2014-2024 The Apache Software Foundation

This project includes software developed at
The Apache Software Foundation (http://www.apache.org/).

This project bundles the following dependencies under the Apache Software License 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)

- com.jayway.jsonpath:json-path:2.7.0
4 changes: 4 additions & 0 deletions flink-shaded-jackson-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ under the License.
<modules>
<module>flink-shaded-jackson-2</module>
<module>flink-shaded-jackson-module-jsonSchema-2</module>
<!-- It's under jackson-parent even though it's not its subproject in order to apply the
same jackson shading from the parent pom. This jackson shading is what we're interested in
principle, because that way we can configure JsonPath mappings.-->
<module>flink-shaded-jsonpath</module>
</modules>

<dependencyManagement>
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ under the License.
<shading.prefix>org.apache.flink.shaded</shading.prefix>
<netty.version>4.1.100.Final</netty.version>
<jackson.version>2.15.3</jackson.version>
<jsonpath.version>2.7.0</jsonpath.version>
<guava.version>32.1.3-jre</guava.version>
<!-- The license check requires the artifactId to match the directory that the module resides in.
This is not the case for several modules in flink-shaded for legacy reasons.
Expand Down

0 comments on commit b23e1a8

Please sign in to comment.