<assembly
    xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
    
    <id>dist</id>
    <baseDirectory>${project.artifactId}-${project.version}</baseDirectory>

    <!-- Output tar.gz -->
    <formats>
        <format>tar.gz</format>
    </formats>

    <!-- Include all implementations -->
    <fileSets>

            <!-- MySQL implementation -->
            <fileSet>
                <outputDirectory>/mysql/schema</outputDirectory>
                <directory>modules/guacamole-auth-jdbc-mysql/schema</directory>
            </fileSet>
            <fileSet>
                <directory>modules/guacamole-auth-jdbc-mysql/target/extension</directory>
                <outputDirectory>/mysql</outputDirectory>
                <includes>
                    <include>*.jar</include>
                </includes>
            </fileSet>

            <!-- PostgreSQL implementation -->
            <fileSet>
                <outputDirectory>/postgresql/schema</outputDirectory>
                <directory>modules/guacamole-auth-jdbc-postgresql/schema</directory>
            </fileSet>
            <fileSet>
                <directory>modules/guacamole-auth-jdbc-postgresql/target/extension</directory>
                <outputDirectory>/postgresql</outputDirectory>
                <includes>
                    <include>*.jar</include>
                </includes>
            </fileSet>

    </fileSets>

</assembly>
