<!--
  ~ 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.
  -->
<runtime>

    <artifactSet to="/lib">
        <exclusion>org.slf4j:slf4j-log4j12</exclusion>
        <exclusion>org.slf4j:slf4j-api</exclusion>
        <exclusion>ch.qos.logback:logback-classic</exclusion>
    </artifactSet>
    <!-- Target -->
    <archive name="${project.artifactId}-${project.version}.tar.gz" hardLinkIncludes="**/*.jar"/>
    <!-- Notices -->
    <fileSet to="/">
        <directory path="${basedir}/../">
            <include>DISCLAIMER</include>
            <include>install.sh</include>
            <include>LICENSE</include>
            <include>NOTICE</include>
        </directory>

    </fileSet>

    <!-- Server -->
    <artifactSet to="bin">
        <artifact id="io.airlift:launcher:tar.gz:bin:${dep.packaging.version}">
            <unpack/>
        </artifact>
        <artifact id="io.airlift:launcher:tar.gz:properties:${dep.packaging.version}">
            <unpack filter="true"/>
        </artifact>
    </artifactSet>

    <!-- Plugins -->
    <artifactSet to="lib/plugin/alert/email">
        <artifact id="${project.groupId}:dolphinscheduler-alert-email:zip:${project.version}">
            <unpack/>
        </artifact>
    </artifactSet>
    <artifactSet to="lib/plugin/alert/script">
        <artifact id="${project.groupId}:dolphinscheduler-alert-script:zip:${project.version}">
            <unpack/>
        </artifact>
    </artifactSet>
    <artifactSet to="lib/plugin/alert/wechat">
        <artifact id="${project.groupId}:dolphinscheduler-alert-wechat:zip:${project.version}">
            <unpack/>
        </artifact>
    </artifactSet>
    <artifactSet to="lib/plugin/alert/dingtalk">
        <artifact id="${project.groupId}:dolphinscheduler-alert-dingtalk:zip:${project.version}">
            <unpack/>
        </artifact>
    </artifactSet>
    <artifactSet to="lib/plugin/alert/http">
        <artifact id="${project.groupId}:dolphinscheduler-alert-http:zip:${project.version}">
            <unpack/>
        </artifact>
    </artifactSet>
    <artifactSet to="lib/plugin/alert/feishu">
        <artifact id="${project.groupId}:dolphinscheduler-alert-feishu:zip:${project.version}">
            <unpack/>
        </artifact>
    </artifactSet>
    <artifactSet to="lib/plugin/registry/zookeeper">
        <artifact id="${project.groupId}:dolphinscheduler-registry-zookeeper:zip:${project.version}">
            <unpack/>
        </artifact>
    </artifactSet>
    <!-- Task Plugins -->
    <artifactSet to="lib/plugin/task/shell">
        <artifact id="${project.groupId}:dolphinscheduler-task-shell:zip:${project.version}">
            <unpack/>
        </artifact>
    </artifactSet>
    <artifactSet to="lib/plugin/task/python">
        <artifact id="${project.groupId}:dolphinscheduler-task-python:zip:${project.version}">
            <unpack/>
        </artifact>
    </artifactSet>
    <artifactSet to="lib/plugin/task/flink">
        <artifact id="${project.groupId}:dolphinscheduler-task-flink:zip:${project.version}">
            <unpack/>
        </artifact>
    </artifactSet>
    <artifactSet to="lib/plugin/task/spark">
        <artifact id="${project.groupId}:dolphinscheduler-task-spark:zip:${project.version}">
            <unpack/>
        </artifact>
    </artifactSet>
    <artifactSet to="lib/plugin/task/http">
        <artifact id="${project.groupId}:dolphinscheduler-task-http:zip:${project.version}">
            <unpack/>
        </artifact>
    </artifactSet>
    <artifactSet to="lib/plugin/task/sql">
        <artifact id="${project.groupId}:dolphinscheduler-task-sql:zip:${project.version}">
            <unpack/>
        </artifact>
    </artifactSet>

</runtime>