<?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>composer-server-parent</artifactId>
    <groupId>org.ballerinalang</groupId>
    <version>0.970.0-alpha4</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>composer-server-distribution</artifactId>
  <name>Ballerina - Composer - Server Distribution</name>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>${maven.shadeplugin.version}</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <filters>
                <filter>
                  <artifact>*:*</artifact>
                  <excludes>
                    <exclude>META-INF/*.SF</exclude>
                    <exclude>META-INF/*.DSA</exclude>
                    <exclude>META-INF/*.RSA</exclude>
                  </excludes>
                </filter>
              </filters>
              <transformers>
                <transformer>
                  <mainClass>${composer.server.launcher.main}</mainClass>
                </transformer>
                <transformer />
              </transformers>
              <artifactSet>
                <excludes>
                  <exclude>com.github.jknack:handlebars</exclude>
                  <exclude>org.apache.ws.commons.axiom:axiom-dom</exclude>
                  <exclude>org.wso2.staxon:staxon-core</exclude>
                  <exclude>commons-pool.wso2:commons-pool</exclude>
                  <exclude>org.wso2.carbon.utils:carbon-utils</exclude>
                  <exclude>org.wso2.orbit.org.yaml:snakeyaml</exclude>
                  <exclude>org.yaml:snakeyaml</exclude>
                </excludes>
              </artifactSet>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.testng</groupId>
      <artifactId>testng</artifactId>
      <version>6.9.4</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>bsh</artifactId>
          <groupId>org.beanshell</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.wso2.msf4j.example</groupId>
      <artifactId>stockquote-fatjar</artifactId>
      <version>2.1.0</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <properties>
    <composer.server.launcher.main>org.ballerinalang.composer.server.launcher.ServerLauncher</composer.server.launcher.main>
  </properties>
</project>

