<?xml version="1.0"?>
<!--

    Sonatype Nexus (TM) Open Source Version
    Copyright (c) 2008-present Sonatype, Inc.
    All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions.

    This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0,
    which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html.

    Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks
    of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the
    Eclipse Foundation. All other trademarks are the property of their respective owners.

-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <artifactId>mavengem</artifactId>
    <groupId>org.torquebox.mojo</groupId>
    <version>1.0.3</version>
  </parent>

  <artifactId>rubygems-tools</artifactId>
  <name>Rubygems Tools</name>

  <dependencies>
    <dependency>
      <groupId>commons-codec</groupId>
      <artifactId>commons-codec</artifactId>
      <version>1.11</version>
    </dependency>

    <dependency>
      <groupId>org.jruby</groupId>
      <artifactId>jruby</artifactId>
      <version>${jruby.version}</version>
      <type>pom</type>
    </dependency>

    <dependency>
      <groupId>org.sonatype.sisu.litmus</groupId>
      <artifactId>litmus-testsupport</artifactId>
      <version>1.9</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <version>2.4</version>
      <scope>test</scope>
    </dependency>

  </dependencies>

  <properties>
    <jruby-plugins.version>1.1.5</jruby-plugins.version>
  </properties>

  <build>
    <resources>
      <resource>
        <directory>target/rubygems-provided</directory>
        <includes>
          <include>gems/**</include>
          <include>specifications/*</include>
        </includes>
      </resource>
      <resource>
        <directory>${basedir}/src/main/resources</directory>
      </resource>
    </resources>

    <plugins>
      <plugin>
        <groupId>de.saumya.mojo</groupId>
        <artifactId>gem-maven-plugin</artifactId>
        <version>${jruby-plugins.version}</version>
        <executions>
          <execution>
            <goals>
              <goal>sets</goal>
            </goals>
            <configuration>
              <scope>compile</scope>
              <gems>
                <maven-tools>1.0.5</maven-tools>
                <virtus>1.0.5</virtus>
                <descendants_tracker>0.0.4</descendants_tracker>
                <thread_safe>0.3.6</thread_safe>
                <equalizer>0.0.11</equalizer>
                <coercible>1.0.0</coercible>
                <axiom-types>0.1.1</axiom-types>
                <ice_nine>0.11.2</ice_nine>
              </gems>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <includeRubygemsInResources>true</includeRubygemsInResources>
        </configuration>
      </plugin>

      <plugin>
        <groupId>de.saumya.mojo</groupId>
        <artifactId>minitest-maven-plugin</artifactId>
        <version>${jruby-plugins.version}</version>
        <executions>
          <execution>
            <goals>
              <goal>spec</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <minispecDirectory>${project.basedir}/src/test/minispecs/*rb</minispecDirectory>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>torquebox</id>
      <repositories>
        <repository>
          <id>rubygems-proxy</id>
          <name>Rubygems Proxy</name>
          <url>http://rubygems-proxy.torquebox.org/releases</url>
          <layout>default</layout>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>false</enabled>
            <updatePolicy>never</updatePolicy>
          </snapshots>
        </repository>
      </repositories>
    </profile>
  </profiles>
</project>
