<?xml version="1.0" encoding="UTF-8"?>
<!--
    Copyright (c) 2020 Contributors to the Eclipse Foundation

    This program and the accompanying materials are made available under the
    terms of the Eclipse Public License v. 2.0, which is available at
    http://www.eclipse.org/legal/epl-2.0.

    This Source Code may also be made available under the following Secondary
    Licenses when the conditions for such availability set forth in the
    Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
    version 2 with the GNU Classpath Exception, which is available at
    https://www.gnu.org/software/classpath/license.html.

    SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0

-->
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd">
    <id></id>
    <baseDirectory>mvc-tck-dist-${project.version}</baseDirectory>
    <formats>
        <format>zip</format>
    </formats>
    <dependencySets>
        <dependencySet>
            <outputDirectory>artifacts</outputDirectory>
            <useTransitiveDependencies>false</useTransitiveDependencies>
            <includes>
                <include>jakarta.mvc.tck:mvc-tck-tests</include>
            </includes>
        </dependencySet>
        <dependencySet>
            <outputDirectory>lib</outputDirectory>
            <useTransitiveDependencies>true</useTransitiveDependencies>
            <excludes>
                <exclude>jakarta.mvc.tck:mvc-tck-tests</exclude>
            </excludes>
        </dependencySet>
        <dependencySet>
            <outputDirectory>tck-audit</outputDirectory>
            <useTransitiveDependencies>false</useTransitiveDependencies>
            <includes>
                <include>jakarta.mvc:jakarta.mvc-api</include>
            </includes>
        </dependencySet>
    </dependencySets>
    <fileSets>
        <fileSet>
            <directory>../docs/target/generated-docs</directory>
            <outputDirectory>docs/reference</outputDirectory>
            <excludes>
                <exclude>**/chapters/**</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>..</directory>
            <outputDirectory>src</outputDirectory>
            <excludes>
                <exclude>**/target/**</exclude>
                <exclude>**/*.iml</exclude>
                <exclude>.gitignore</exclude>
                <exclude>sample/**</exclude>
                <exclude>.idea/**</exclude>
                <!-- Exclude license files from src dir so there is no confusion as to which license applies -->
                <exclude>LICENSE</exclude>
                <exclude>LICENSE_EFTL.md</exclude>
            </excludes>
            <useDefaultExcludes/>
        </fileSet>
        <fileSet>
            <directory>../sigtest/target</directory>
            <outputDirectory>sigtest</outputDirectory>
            <includes>
                <include>mvc-tck-sigtest-${project.version}.sigfile</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../sample</directory>
            <outputDirectory>sample</outputDirectory>
            <useDefaultExcludes>true</useDefaultExcludes>
            <excludes>
                <exclude>**/target/**</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>..</directory>
            <includes>
                <!-- Include both the EFTL.txt and license.txt in final build when -Dlicense.file=EFTL.txt is given.
                Under a normal build when -Dlicense.file is not given, only the license.txt file is included.
                -->
                <include>${license.file}</include>
                <include>LICENSE</include>
                <include>README.md</include>
            </includes>
        </fileSet>
    </fileSets>
</assembly>
