<?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.fesod</groupId>
        <artifactId>fesod-parent</artifactId>
        <version>2.0.2-incubating</version>
    </parent>

    <artifactId>fesod-shaded</artifactId>
    <name>Fesod Shaded</name>

    <description>
        Apache Fesod (Incubating) is a high-performance and memory-efficient Java library for reading and writing Excel files, designed to
        simplify development and ensure reliability.

        Apache Fesod (incubating) is an effort undergoing incubation at The Apache
        Software Foundation (ASF), sponsored by the Apache Incubator PMC.

        Incubation is required of all newly accepted projects until a further review
        indicates that the infrastructure, communications, and decision making process
        have stabilized in a manner consistent with other successful ASF projects.

        While incubation status is not necessarily a reflection of the completeness
        or stability of the code, it does indicate that the project has yet to be
        fully endorsed by the ASF.

        Some of the incubating project’s releases may not be fully compliant with ASF
        policy. For example, releases may have incomplete or un-reviewed licensing
        conditions. What follows is a list of issues the project is currently aware of
        (this list is likely to be incomplete):

        1. IP Clearance and license header updates for legacy code derived from Alibaba
        EasyExcel are currently in progress.

        If you are planning to incorporate this work into your product/project,please be
        aware that you will need to conduct a thorough licensing review to determine the
        overall implications of including this work.

        For the current status of this project through the Apache Incubator,
        visit: https://incubator.apache.org/projects/fesod.html
    </description>

    <licenses>
        <license>
            <name>Apache License, Version 2.0</name>
            <url>https://www.apache.org/licenses/LICENSE-2.0</url>
        </license>
    </licenses>

    <dependencies>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
            <optional>true</optional>
            <exclusions>
                <exclusion>
                    <groupId>*</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
    </dependencies>


    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <createSourcesJar>true</createSourcesJar>
                            <createDependencyReducedPom>false</createDependencyReducedPom>

                            <artifactSet>
                                <includes>
                                    <include>org.springframework:spring-core</include>
                                </includes>
                            </artifactSet>

                            <filters>
                                <filter>
                                    <artifact>org.springframework:spring-core</artifact>
                                    <includes>
                                        <include>org/springframework/asm/**</include>
                                        <include>org/springframework/cglib/**</include>
                                    </includes>
                                    <excludes>
                                        <exclude>META-INF/LICENSE*</exclude>
                                        <exclude>META-INF/NOTICE*</exclude>
                                    </excludes>
                                </filter>
                            </filters>

                            <relocations>
                                <relocation>
                                    <pattern>org.springframework</pattern>
                                    <shadedPattern>org.apache.fesod.shaded</shadedPattern>
                                </relocation>
                            </relocations>

                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
