<?xml version="1.0" encoding="UTF-8"?>
<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">
  <parent>
    <artifactId>open-app-stream-client</artifactId>
    <groupId>com.dingtalk.open</groupId>
    <version>1.3.7</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>app-stream-client</artifactId>
  <name>app-stream-client</name>
  <version>1.3.7</version>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.1.1</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <createSourcesJar>true</createSourcesJar>
              <createDependencyReducedPom>true</createDependencyReducedPom>
              <promoteTransitiveDependencies>false</promoteTransitiveDependencies>
              <artifactSet>
                <includes>
                  <include>com.dingtalk.open:app-stream-api</include>
                  <include>com.dingtalk.open:app-stream-network-api</include>
                  <include>com.dingtalk.open:app-stream-network-core</include>
                  <include>com.dingtalk.open:app-stream-network-ws</include>
                  <include>com.dingtalk.open:app-stream-protocol</include>
                  <include>io.netty:*</include>
                  <include>com.alibaba.fastjson2:*</include>
                </includes>
              </artifactSet>
              <relocations>
                <relocation>
                  <pattern>io.netty</pattern>
                  <shadedPattern>shade.io.netty</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.alibaba.fastjson2</pattern>
                  <shadedPattern>shade.com.alibaba.fastjson2</shadedPattern>
                </relocation>
              </relocations>
              <filters>
                <filter>
                  <artifact>*:*</artifact>
                  <excludes>
                    <exclude>META-INF/maven/**</exclude>
                  </excludes>
                </filter>
              </filters>
              <transformers>
                <transformer>
                  <resource>META-INF/services/com.dingtalk.open.app.stream.network.rsocket.RsocketTransportConnector</resource>
                </transformer>
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.9.1</version>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.3.0</version>
        <executions>
          <execution>
            <id>empty-javadoc-jar</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <classifier>javadoc</classifier>
              <classesDirectory>${basedir}/javadoc</classesDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>com.dingtalk.open</groupId>
      <artifactId>app-stream-network</artifactId>
      <version>1.3.7</version>
      <type>pom</type>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
  </dependencies>
</project>
