<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>
    </fileSets>

    <files>
        <file>
            <source>${project.build.directory}/standalone.xml</source>
            <outputDirectory>standalone/configuration</outputDirectory>
            <destName>standalone-keycloak.xml</destName>
        </file>
        <file>
            <source>src/main/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>
