<!--
~ Copyright (C) 2014 the original author or authors.
~
~ Licensed 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>
    <!-- We dont use the <id> element to avoid the extension to the directory
         and zip name -->
    <formats>
        <format>dir</format>
        <format>zip</format>
    </formats>
    <includeBaseDirectory>false</includeBaseDirectory>
    <fileSets>        
        <fileSet>
            <directory>${basedir}/..</directory>
            <includes>
                <include>LICENSE</include>
                <include>NOTICE</include>
            </includes>
            <outputDirectory>/</outputDirectory>
        </fileSet>
    </fileSets>

    <dependencySets>
        <!-- The lib directory are service implementation jars and their transitive requirements -->
        <dependencySet>      
			<useProjectArtifact>false</useProjectArtifact>      
            <excludes>  
	            <!-- exclude jline, this is brought in transitively because of groovy -->
                <exclude>jline:*</exclude>              
                <exclude>groovy:*</exclude> 
                <exclude>org.apache.river:river-dl:jar</exclude>
	            <exclude>org.apache.river.reggie:reggie-dl:jar</exclude>
	            <exclude>org.apache.river.outrigger:outrigger-dl:jar</exclude>
				<exclude>org.apache.river.mahalo:mahalo-dl:jar</exclude>
				<exclude>org.apache.river.mercury:mercury-dl:jar</exclude>
				<exclude>org.apache.river.norm:norm-dl:jar</exclude>				
            </excludes>
            <outputDirectory>lib</outputDirectory>
	    <!--<outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>-->
        </dependencySet>

        <!-- All proxy and dl jars go into the lib-dl directory -->
        <dependencySet>
			<useProjectArtifact>false</useProjectArtifact>
            <useStrictFiltering>true</useStrictFiltering>
            <includes>
                <include>org.apache.river:river-dl:jar</include>
                <include>org.apache.river.reggie:reggie-dl:jar</include>
                <include>org.apache.river.outrigger:outrigger-dl:jar</include>
				<include>org.apache.river.mahalo:mahalo-dl:jar</include>
				<include>org.apache.river.mercury:mercury-dl:jar</include>
				<include>org.apache.river.norm:norm-dl:jar</include>								
            </includes>
            <outputDirectory>lib-dl</outputDirectory>
	    <!--<outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>-->
        </dependencySet>

    </dependencySets>

</assembly>
