<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.1 https://maven.apache.org/xsd/assembly-2.1.1.xsd">

    <id>src</id>
    <formats>
        <format>zip</format>
    </formats>

    <includeBaseDirectory>true</includeBaseDirectory>
    <baseDirectory>pmd-src-${project.version}</baseDirectory>

    <fileSets>
        <fileSet>
            <useDefaultExcludes>false</useDefaultExcludes>
            <directory>${project.basedir}/..</directory>
            <outputDirectory></outputDirectory>
            <includes>
                <include>mvnw</include>
            </includes>
            <fileMode>0755</fileMode>
        </fileSet>

        <fileSet>
            <useDefaultExcludes>false</useDefaultExcludes>
            <directory>${project.basedir}/..</directory>
            <outputDirectory></outputDirectory>
            <excludes>
                <exclude>mvnw</exclude> <!-- added already above -->
                <exclude>.git/**</exclude>
                <exclude>**/target/**</exclude>
                <exclude>**/bin/**</exclude>

                <exclude>**/.settings/**</exclude>
                <exclude>**/.project</exclude>
                <exclude>**/.classpath</exclude>
                <exclude>**/.checkstyle</exclude>
                <exclude>**/.pmd</exclude>
                <exclude>**/.pmdruleset.xml</exclude>
                <exclude>**/.ruleset</exclude>
                <exclude>**/.idea/**</exclude>
                <exclude>**/*.iml</exclude>

                <exclude>.ci/files/id_rsa</exclude>
                <exclude>.ci/files/private-env</exclude>
                <exclude>.ci/files/public-env</exclude>
                <exclude>.ci/files/release-signing-key-D0BF1D737C9A1C22.gpg.gpg</exclude>

                <exclude>.bundle/**</exclude>
                <exclude>vendor/**</exclude>
                <exclude>Gemfile.lock</exclude>
                <exclude>docs/.bundle/**</exclude>
                <exclude>docs/vendor/**</exclude>
                <exclude>docs/_site/**</exclude>
                <exclude>node_modules/**</exclude>

                <exclude>pmd-core/dependency-reduced-pom.xml</exclude>
            </excludes>
            <directoryMode>0755</directoryMode>
            <fileMode>0644</fileMode>
        </fileSet>
    </fileSets>
</assembly>
