<?xml version="1.0" encoding="UTF-8"?>
<!--
    * Licensed to the Apache Software Foundation (ASF) under one
    * or more contributor license agreements.  See the NOTICE file
    * distributed with this work for additional information
    * regarding copyright ownership.  The ASF licenses this file
    * to you under the Apache License, Version 2.0 (the
    * "License"); you may not use this file except in compliance
    * with the License.  You may obtain a copy of the License at
    *
    *   http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing,
    * software distributed under the License is distributed on an
    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    * KIND, either express or implied.  See the License for the
    * specific language governing permissions and limitations
    * under the License.
-->
<assembly>
    <!-- id typically identifies the "type" (src vs bin etc) of the assembly -->
    <id></id>
    <includeBaseDirectory>false</includeBaseDirectory>
    <formats>
        <format>dir</format>
        <format>tar.gz</format>
        <format>zip</format>
    </formats>

    <fileSets>
        <fileSet>
            <directory>../</directory>
            <outputDirectory>apache-abdera-${version}/</outputDirectory>
            <includes>
                <include>CHANGES</include>
                <include>README</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>target/maven-shared-archive-resources/META-INF</directory>
            <outputDirectory>apache-abdera-${version}/</outputDirectory>
            <includes>
                <include>*</include>
            </includes>
            <excludes>
                <exclude>DEPENDENCIES</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>../dependencies/legal</directory>
            <outputDirectory>apache-abdera-${version}/lib</outputDirectory>
            <includes>
                <include>**/*.txt</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../examples/src/main/java</directory>
            <outputDirectory>apache-abdera-${version}/examples</outputDirectory>
        </fileSet>
        <fileSet>
            <directory>../examples/src/main/resources</directory>
            <outputDirectory>apache-abdera-${version}/examples</outputDirectory>
        </fileSet>
        <fileSet>
            <directory>../bundle/target/apidocs</directory>
            <outputDirectory>apache-abdera-${version}/docs/api</outputDirectory>
            <includes>
                <include>**/*</include>
            </includes>
        </fileSet>
    </fileSets>
    <dependencySets>
        <dependencySet>
            <outputDirectory>apache-abdera-${version}/lib</outputDirectory>
            <unpack>false</unpack>
            <excludes>
                <exclude>org.apache.abdera:*</exclude>
                <exclude>javax.servlet:servlet-api</exclude>
                <exclude>xerces:xercesImpl</exclude>
                <exclude>xml-apis:*</exclude>
            </excludes>
            <scope>runtime</scope>
        </dependencySet>
        <!-- We could uncomment this if we want to include individual jars -->
        <!-- dependencySet>
            <outputDirectory>apache-abdera-${version}/modules</outputDirectory>
            <unpack>false</unpack>
            <includes>
                <include>org.apache.abdera:*</include>
            </includes>
            <excludes>
                <exclude>org.apache.abdera:abdera-bundle</exclude>
            </excludes>
            <scope>runtime</scope>
        </dependencySet -->
        <dependencySet>
            <outputDirectory>apache-abdera-${version}</outputDirectory>
            <unpack>false</unpack>
            <includes>
                <include>org.apache.abdera:abdera-bundle</include>
            </includes>
            <scope>test</scope>
            <outputFileNameMapping>abdera-${version}.jar</outputFileNameMapping>
        </dependencySet>
        <dependencySet>
            <outputDirectory>apache-abdera-${version}/modules</outputDirectory>
            <unpack>false</unpack>
            <includes>
                <include>org.apache.abdera:*</include>
            </includes>
            <excludes>
                <exclude>org.apache.abdera:abdera-bundle</exclude>
            </excludes>
            <scope>test</scope>
        </dependencySet>

    </dependencySets>

</assembly>
