<?xml version='1.0' encoding='UTF-8'?>
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0
                    http://maven.apache.org/xsd/assembly-1.1.0.xsd">
    <id>${project.version}</id>
    <formats>
        <format>zip</format>
    </formats>
    <includeBaseDirectory>false</includeBaseDirectory>
    <fileSets>
        <fileSet>
            <directory>src/main/resources/scripts</directory>
            <outputDirectory>bin</outputDirectory>
        </fileSet>
        <fileSet>
            <directory>src/main/resources/config</directory>
            <outputDirectory>config</outputDirectory>
        </fileSet>
        <fileSet>
            <directory>src/main/resources/docs</directory>
            <outputDirectory>docs</outputDirectory>
        </fileSet>
    </fileSets>
    <dependencySets>
        <dependencySet>
            <unpack>false</unpack>
            <useProjectArtifact>true</useProjectArtifact>
            <outputDirectory>system</outputDirectory>
            <includes>
            	<include>com.jd.blockchain:ledger-core</include>
            	<include>com.jd.blockchain:storage-service</include>
            	<include>com.jd.blockchain:storage-rocksdb</include>
            	<include>com.jd.blockchain:storage-redis</include>
            	<include>com.jd.blockchain:storage-composite</include>
            	<include>com.jd.blockchain:runtime-modular</include>
            	<include>com.jd.blockchain:runtime-modular-booter</include>
            	<include>com.jd.blockchain:peer</include>
            	<include>com.jd.blockchain:deployment-peer</include>
            </includes>
        </dependencySet>
        <dependencySet>
            <unpack>false</unpack>
            <useProjectArtifact>true</useProjectArtifact>
            <outputDirectory>libs</outputDirectory>
            <excludes>
            	<exclude>com.jd.blockchain:ledger-core</exclude>
            	<exclude>com.jd.blockchain:storage-service</exclude>
            	<exclude>com.jd.blockchain:storage-rocksdb</exclude>
            	<exclude>com.jd.blockchain:storage-redis</exclude>
            	<exclude>com.jd.blockchain:storage-composite</exclude>
            	<exclude>com.jd.blockchain:runtime-modular</exclude>
            	<exclude>com.jd.blockchain:runtime-modular-booter</exclude>
            	<exclude>com.jd.blockchain:peer</exclude>
            	<exclude>com.jd.blockchain:deployment-peer</exclude>
            </excludes>
        </dependencySet>
    </dependencySets>

    <moduleSets>
        <moduleSet>
            <useAllReactorProjects>true</useAllReactorProjects>
            <includes>
                <include>com.jd.blockchain:tools-initializer-booter</include>
                <include>com.jd.blockchain:tools-keygen-booter</include>
            </includes>
            <binaries>
                <outputDirectory>libs</outputDirectory>
                <unpack>false</unpack>
            </binaries>
        </moduleSet>
    </moduleSets>
</assembly>