<?xml version='1.0' encoding='UTF-8'?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.infinispan</groupId>
        <artifactId>infinispan-marshaller-parent</artifactId>
        <version>9.0.2.Final</version>
        <relativePath>../../pom.xml</relativePath>
    </parent>

    <artifactId>infinispan-marshaller-protostuff-bundle</artifactId>
    <packaging>jar</packaging>
    <name>Infinispan Protostuff Marshaller Bridge Compatibility Bundle</name>

    <dependencies>
        <dependency>
            <groupId>org.infinispan</groupId>
            <artifactId>infinispan-marshaller-protostuff</artifactId>
            <version>${project.version}</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <skipTests>true</skipTests>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <executions>
                    <execution>
                        <id>none-default</id>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <finalName>${project.artifactId}-${project.version}</finalName>
                            <artifactSet>
                                <excludes>
                                    <exclude>org.infinispan:infinispan-core:jar:</exclude>
                                    <exclude>org.infinispan:infinispan-commons:jar:</exclude>
                                    <exclude>org.jgroups:jgroups:jar:</exclude>
                                    <exclude>org.jboss.marshalling:jboss-marshalling-osgi:jar:</exclude>
                                    <exclude>org.apache.logging.log4j:log4j-core:jar:</exclude>
                                    <exclude>org.apache.logging.log4j:log4j-api:jar:</exclude>
                                    <exclude>org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:</exclude>
                                    <exclude>org.jboss.logging:jboss-logging:jar:</exclude>
                                    <exclude>net.jcip:jcip-annotations:jar:</exclude>
                                    <exclude>com.*</exclude>
                                    <exclude>net.*</exclude>
                                </excludes>
                            </artifactSet>
                            <filters>
                                <filter>
                                    <artifact>org.infinispan:infinispan-marshaller-protostuff-bundle</artifact>
                                    <excludes>
                                        <exclude>META-INF/maven/org.infinispan/infinispan-marshaller-protostuff-bundle</exclude>
                                        <exclude>META-INF/maven/org.infinispan/infinispan-marshaller-protostuff-bundle/*</exclude>
                                    </excludes>
                                </filter>
                            </filters>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>