<assembly>
    <id>server-dist</id>

    <formats>
        <format>zip</format>
        <format>tar.gz</format>
    </formats>

    <includeBaseDirectory>false</includeBaseDirectory>

    <fileSets>
        <fileSet>
            <directory>${project.build.directory}/unpacked/modules</directory>
            <outputDirectory>modules/system/layers/base</outputDirectory>
        </fileSet>
        <fileSet>
            <directory>../../../../forms/common-themes/src/main/resources/theme</directory>
            <outputDirectory>standalone/configuration/themes</outputDirectory>
            <includes>
                <include>**/**</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>cli</directory>
            <includes>
                <include>*.cli</include>
            </includes>
            <outputDirectory>bin</outputDirectory>
        </fileSet>
    </fileSets>

    <files>
        <file>
            <source>${project.build.directory}/standalone.xml</source>
            <outputDirectory>standalone/configuration</outputDirectory>
            <destName>standalone-keycloak.xml</destName>
        </file>
        <file>
            <source>${project.build.directory}/standalone-ha.xml</source>
            <outputDirectory>standalone/configuration</outputDirectory>
            <destName>standalone-keycloak-ha.xml</destName>
        </file>
        <file>
            <source>../../../feature-packs/server-feature-pack/src/main/resources/content/standalone/configuration/keycloak-server.json</source>
            <outputDirectory>standalone/configuration</outputDirectory>
        </file>
        <file>
            <source>src/main/themes/README.txt</source>
            <outputDirectory>standalone/configuration/themes</outputDirectory>
        </file>
        <file>
            <source>src/main/providers/README.txt</source>
            <outputDirectory>standalone/configuration/providers</outputDirectory>
        </file>
    </files>

</assembly>
