<?xml version="1.0"?>


<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.2.0 https://maven.apache.org/xsd/assembly-2.2.0.xsd">
    <id>plugin-assembly</id>
    <includeBaseDirectory>false</includeBaseDirectory>
    <formats>
        <format>dir</format>
        <format>zip</format>
    </formats>
    <files>
        <file>
            <source>target/teamcity-plugin.xml</source>
            <outputDirectory>/</outputDirectory>
        </file>
        <file>
            <source>target/deploy-runner-agent.zip</source>
            <outputDirectory>agent</outputDirectory>
        </file>
    </files>
    <fileSets>
        <fileSet>
            <directory>../kotlin-dsl/</directory>
            <outputDirectory>kotlin-dsl</outputDirectory>
            <includes>
                <include>*.xml</include>
            </includes>
        </fileSet>
    </fileSets>
    <moduleSets>
        <moduleSet>
            <useAllReactorProjects>true</useAllReactorProjects>
            <includes>
                <include>jetbrains.buildServer.deployer:deploy-runner-server</include>
            </includes>
            <binaries>
                <outputDirectory>server</outputDirectory>
                <unpack>false</unpack>
                <dependencySets>
                    <dependencySet>
<!--                        <includes>-->
<!--                            <include>*</include>-->
<!--                            <include>org.codehaus.cargo:cargo-core-uberjar</include>-->
<!--                        </includes>-->
                        <!--
                        This is a 'reversed' configuration of maven-shade-plugin from
                        https://search.maven.org/artifact/org.codehaus.cargo/cargo-core-uberjar/1.10.10/jar
                        -->
                        <excludes>
                            <exclude>*:*:*:sources</exclude>
                            <exclude>org.codehaus.cargo:cargo-core-api-container</exclude>
                            <exclude>org.codehaus.cargo:cargo-core-api-generic</exclude>
                            <exclude>org.codehaus.cargo:cargo-core-api-module</exclude>
                            <exclude>org.codehaus.cargo:cargo-core-api-util</exclude>
<!--                            <exclude>org.codehaus.cargo:*</exclude>-->
                            <exclude>net.java.dev.jna:*</exclude>
                            <exclude>org.jboss.spec.javax.rmi:*</exclude>
                            <exclude>jaxen:jaxen</exclude>
                            <exclude>jdom:jdom</exclude>
<!--                            <exclude>org.jdom:jdom2</exclude>--> <!-- Excluded until we upgrade to jdom2 -->
                            <exclude>org.apache.geronimo.specs:geronimo-j2ee-deployment_1.1_spec</exclude>
                        </excludes>
                    </dependencySet>
                </dependencySets>
            </binaries>
        </moduleSet>
    </moduleSets>
</assembly>