Skip to content
Permalink
Browse files
[FLINK-14954] Add flink-shaded-swagger
  • Loading branch information
zentol committed Oct 19, 2021
1 parent 8620d20 commit db48d62f7b52f012b83533f8aa3f39fc0c0ee3db
Showing 5 changed files with 119 additions and 0 deletions.
@@ -85,6 +85,7 @@ under the License.
</artifactSet>
<relocations>
<relocation>
<!-- This needs to match flink-shaded-swagger -->
<pattern>com.fasterxml.jackson</pattern>
<shadedPattern>${shading.prefix}.jackson2.com.fasterxml.jackson</shadedPattern>
</relocation>
@@ -0,0 +1,85 @@
<?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/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded</artifactId>
<version>15.0</version>
</parent>

<artifactId>flink-shaded-swagger</artifactId>
<name>flink-shaded-swagger</name>

<dependencies>
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-core</artifactId>
<version>2.1.11</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<id>shade-flink</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>true</createDependencyReducedPom>
<dependencyReducedPomLocation>${project.basedir}/target/dependency-reduced-pom.xml
</dependencyReducedPomLocation>
<artifactSet>
<excludes>
<!-- We re-use flink-shaded-jackson -->
<exclude>com.fasterxml.jackson.core:*</exclude>
</excludes>
</artifactSet>
<relocations>
<relocation>
<!-- This needs to match the relocation pattern of flink-shaded-jackson -->
<pattern>com.fasterxml.jackson</pattern>
<shadedPattern>${shading.prefix}.jackson2.com.fasterxml.jackson</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
@@ -0,0 +1,21 @@
flink-shaded-swagger
Copyright 2014-2021 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.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.12.1
- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.12.1
- io.swagger.core.v3:swagger-annotations:2.1.11
- io.swagger.core.v3:swagger-core:2.1.11
- io.swagger.core.v3:swagger-models:2.1.11
- jakarta.validation:jakarta.validation-api:2.0.2
- org.apache.commons:commons-lang3:3.7
- org.yaml:snakeyaml:1.27

This project bundles the following dependencies under the Eclipse Distribution License 1.0 (https://www.eclipse.org/org/documents/edl-v10.php)

- jakarta.activation:jakarta.activation-api:1.2.1
- jakarta.xml.bind:jakarta.xml.bind-api:2.3.2
@@ -0,0 +1,11 @@
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name of the Eclipse Foundation, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -64,6 +64,7 @@ under the License.
<module>flink-shaded-netty-tcnative-dynamic</module>
<module>flink-shaded-jackson-parent</module>
<module>flink-shaded-zookeeper-parent</module>
<module>flink-shaded-swagger</module>
</modules>

<profiles>

0 comments on commit db48d62

Please sign in to comment.