<!--
  ~ Copyright 2018 Confluent Inc.
  ~
  ~ Licensed under the Confluent Community License (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.confluent.io/confluent-community-license
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  ~ WARRANTIES OF ANY KIND, either express or implied.  See the License for the
  ~ specific language governing permissions and limitations under the License.
  -->

<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
          http://maven.apache.org/xsd/assembly-1.1.2.xsd">
    <!-- Assembles all dependencies in target/ directory so scripts can easily run in a development
         environment -->
    <id>development</id>
    <formats>
        <format>dir</format>
    </formats>
    <includeBaseDirectory>false</includeBaseDirectory>
    <fileSets>
        <fileSet>
            <directory>${project.parent.basedir}</directory>
            <outputDirectory>share/doc/ksql-examples/</outputDirectory>
            <includes>
                <include>README*</include>
                <include>COPYRIGHT*</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>${project.parent.basedir}</directory>
            <outputDirectory></outputDirectory>
            <includes>
                <include>bin/*</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>${project.parent.basedir}/config</directory>
            <outputDirectory>etc/ksql-examples</outputDirectory>
            <includes>
                <include>*</include>
            </includes>
        </fileSet>
    </fileSets>
    <dependencySets>
        <dependencySet>
            <outputDirectory>share/java/ksql-examples</outputDirectory>
            <useProjectArtifact>true</useProjectArtifact>
            <!-- Warning: Enabling useTransitiveFiltering is potentially unsafe,
                 cf. https://github.com/miguno/maven-assembly-transitive-deps-woes
                 and https://issues.apache.org/jira/browse/MASSEMBLY-504.  If
                 dependencies happen to be missing in the assembly you may want to
                 disable transitive filtering. -->
            <useTransitiveFiltering>true</useTransitiveFiltering>
            <excludes>
                <exclude>org.slf4j:slf4j-log4j12</exclude> <!-- Already included by rest-app-->
            </excludes>
        </dependencySet>
    </dependencySets>
</assembly>
