<?xml version="1.0" encoding="UTF-8"?>
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
  <id>bin</id>
  <formats>
    <format>dir</format>
    <format>zip</format>
  </formats>
  <includeBaseDirectory>false</includeBaseDirectory>

  <fileSets>
    <fileSet>
      <directory>target/classes</directory>
      <outputDirectory></outputDirectory>
      <includes>
        <include>*.html</include>
        <include>*.conf</include>
      </includes>
    </fileSet>
  </fileSets>
  <dependencySets>
    <dependencySet>
      <useProjectArtifact>true</useProjectArtifact>
      <useTransitiveDependencies>false</useTransitiveDependencies>
      <outputDirectory>${artifact.artifactId}</outputDirectory>
      <scope>provided</scope>
      <includes>
        <include>${project.groupId}:*:zip</include>
        <!-- include workitems that are in jbpm -->
        <include>org.jbpm:jbpm-workitems-bpmn2:zip</include>
        <include>org.jbpm:jbpm-workitems-email:zip</include>
        <include>org.jbpm:jbpm-workitems-jms:zip</include>
        <include>org.jbpm:jbpm-workitems-rest:zip</include>
        <include>org.jbpm:jbpm-workitems-webservice:zip</include>
      </includes>
      <excludes>
        <exclude>${project.groupId}:repository-springboot</exclude>
        <exclude>${project.groupId}:repository-wildfly</exclude>
      </excludes>
      <unpack>true</unpack>
      <unpackOptions>
        <excludes>
          <exclude>**/*-sources.jar</exclude>
          <exclude>**/*-test-sources.jar</exclude>
          <exclude>**/*tests.jar</exclude>
        </excludes>
      </unpackOptions>
    </dependencySet>
  </dependencySets>

</assembly>
