<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0">
  <id>jar-with-dependencies-and-gems</id>
  <formats>
    <format>jar</format>
  </formats>
  <includeBaseDirectory>false</includeBaseDirectory>
  <fileSets>
    <fileSet>
      <outputDirectory>/</outputDirectory>
      <!-- include all bin scripts -->
      <directory>${project.basedir}/bin</directory>
      <includes>
        <include>*</include>
      </includes>
    </fileSet>
    <fileSet>
      <outputDirectory>/</outputDirectory>
      <!-- include all bin scripts from gems -->
      <directory>${gem.home}/bin</directory>
      <includes>
        <include>*</include>
      </includes>
    </fileSet>
    <fileSet>
      <outputDirectory>/</outputDirectory>
      <!-- use gem.home property where the runtime gems are installed-->
      <directory>${gem.home}</directory>
      <includes>
	<include>gems/**</include>
	<include>specifications/**</include>
      </includes>
    </fileSet>
  </fileSets>
  <dependencySets>
    <dependencySet>
      <outputDirectory>/</outputDirectory>
      <useProjectArtifact>true</useProjectArtifact>
      <unpack>true</unpack>
      <scope>runtime</scope>
      <excludes>
	<exclude>*:gem:*</exclude>
      </excludes>
    </dependencySet>
  </dependencySets>
</assembly>
