<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>7</version>
  </parent>
  <groupId>de.saumya.mojo</groupId>
  <artifactId>maven-tools</artifactId>
  <version>0.34.2</version>
  <name>helpers for maven related tasks</name>
  <description>adds versions conversion from rubygems to maven and vice versa, ruby DSL for POM (Project Object Model from maven), pom generators, etc</description>
  <url>http://github.com/torquebox/maven-tools</url>
  <scm>
    <connection>scm:git:git://github.com/torquebox/maven-tools.git</connection>
    <developerConnection>scm:git:ssh://git@github.com/torquebox/maven-tools.git</developerConnection>
    <url>http://github.com/torquebox/maven-tools</url>
  </scm>
  <properties>
    <jruby.version>1.7.4</jruby.version>
    <jruby.modes>1.8,1.9,2.0</jruby.modes>
    <jruby.plugins.version>1.0.0-rc4</jruby.plugins.version>
    <jruby.versions>1.6.8,1.7.4</jruby.versions>
    <tesla.dump.pom>pom.xml</tesla.dump.pom>
    <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
  </properties>
  <build>
    <resources>
      <resource>
        <directory>${project.basedir}/lib</directory>
      </resource>
      <resource>
        <directory>${project.build.directory}/rubygems/gems/virtus-0.5.5/lib</directory>
        <includes>
          <include>**/*</include>
        </includes>
      </resource>
      <resource>
        <directory>${project.build.directory}/rubygems/gems/backports-3.3.5/lib</directory>
        <includes>
          <include>**/*</include>
        </includes>
      </resource>
      <resource>
        <directory>${project.build.directory}/rubygems/gems/descendants_tracker-0.0.3/lib</directory>
        <includes>
          <include>**/*</include>
        </includes>
      </resource>
    </resources>
    <directory>${basedir}/pkg</directory>
    <plugins>
      <plugin>
        <groupId>de.saumya.mojo</groupId>
        <artifactId>gem-maven-plugin</artifactId>
        <version>${jruby.plugins.version}</version>
        <executions>
          <execution>
            <id>gem build</id>
            <phase>package</phase>
            <goals>
              <goal>package</goal>
            </goals>
            <configuration>
              <gemspec>maven-tools.gemspec</gemspec>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>install</id>
      <build>
        <defaultGoal>install</defaultGoal>
        <plugins>
          <plugin>
            <groupId>de.saumya.mojo</groupId>
            <artifactId>gem-maven-plugin</artifactId>
            <version>${jruby.plugins.version}</version>
            <configuration>
              <gemspec>maven-tools.gemspec</gemspec>
            </configuration>
          </plugin>
          <plugin>
            <groupId>de.saumya.mojo</groupId>
            <artifactId>gem-maven-plugin</artifactId>
            <version>${jruby.plugins.version}</version>
            <executions>
              <execution>
                <goals>
                  <goal>initialize</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
      <properties>
        <jruby.plugins.version>1.0.0-rc4</jruby.plugins.version>
      </properties>
      <dependencies>
        <dependency>
          <groupId>rubygems</groupId>
          <artifactId>virtus</artifactId>
          <version>[0.5,0.99999]</version>
          <type>gem</type>
        </dependency>
        <dependency>
          <groupId>rubygems</groupId>
          <artifactId>rake</artifactId>
          <version>[10.0,10.99999]</version>
          <type>gem</type>
          <scope>test</scope>
        </dependency>
        <dependency>
          <groupId>rubygems</groupId>
          <artifactId>minitest</artifactId>
          <version>[4.4,4.99999]</version>
          <type>gem</type>
          <scope>test</scope>
        </dependency>
        <dependency>
          <groupId>rubygems</groupId>
          <artifactId>rspec</artifactId>
          <version>[2.13.0,2.13.0.0.0.0.0.1)</version>
          <type>gem</type>
          <scope>test</scope>
        </dependency>
      </dependencies>
      <repositories>
        <repository>
          <id>rubygems-releases</id>
          <url>http://rubygems-proxy.torquebox.org/releases</url>
        </repository>
      </repositories>
    </profile>
    <profile>
      <id>test</id>
      <build>
        <defaultGoal>test</defaultGoal>
        <plugins>
          <plugin>
            <groupId>de.saumya.mojo</groupId>
            <artifactId>gem-maven-plugin</artifactId>
            <version>${jruby.plugins.version}</version>
            <configuration>
              <gemspec>maven-tools.gemspec</gemspec>
            </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>spec/*spec.rb</minispecDirectory>
            </configuration>
          </plugin>
          <plugin>
            <groupId>de.saumya.mojo</groupId>
            <artifactId>rspec-maven-plugin</artifactId>
            <version>${jruby.plugins.version}</version>
            <executions>
              <execution>
                <goals>
                  <goal>test</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <specSourceDirectory>rspec</specSourceDirectory>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-clean-plugin</artifactId>
            <version>2.5</version>
            <configuration>
              <filesets>
                <fileset>
                  <directory>./</directory>
                  <includes>
                    <include>Gemfile.lock</include>
                  </includes>
                </fileset>
              </filesets>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <properties>
        <jruby.plugins.version>1.0.0-rc4</jruby.plugins.version>
      </properties>
      <dependencies>
        <dependency>
          <groupId>rubygems</groupId>
          <artifactId>virtus</artifactId>
          <version>[0.5,0.99999]</version>
          <type>gem</type>
        </dependency>
        <dependency>
          <groupId>rubygems</groupId>
          <artifactId>rake</artifactId>
          <version>[10.0,10.99999]</version>
          <type>gem</type>
          <scope>test</scope>
        </dependency>
        <dependency>
          <groupId>rubygems</groupId>
          <artifactId>minitest</artifactId>
          <version>[4.4,4.99999]</version>
          <type>gem</type>
          <scope>test</scope>
        </dependency>
        <dependency>
          <groupId>rubygems</groupId>
          <artifactId>rspec</artifactId>
          <version>[2.13.0,2.13.0.0.0.0.0.1)</version>
          <type>gem</type>
          <scope>test</scope>
        </dependency>
      </dependencies>
      <repositories>
        <repository>
          <id>rubygems-releases</id>
          <url>http://rubygems-proxy.torquebox.org/releases</url>
        </repository>
      </repositories>
    </profile>
    <profile>
      <id>push</id>
      <build>
        <defaultGoal>deploy</defaultGoal>
        <plugins>
          <plugin>
            <artifactId>maven-deploy-plugin</artifactId>
            <configuration>
              <skip>true</skip>
            </configuration>
          </plugin>
          <plugin>
            <groupId>de.saumya.mojo</groupId>
            <artifactId>gem-maven-plugin</artifactId>
            <version>${jruby.plugins.version}</version>
            <executions>
              <execution>
                <id>gem push</id>
                <goals>
                  <goal>push</goal>
                </goals>
                <configuration>
                  <gem>${project.build.directory}/maven-tools-0.34.2.gem</gem>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>sonatype-oss-release</id>
      <build>
        <defaultGoal>deploy</defaultGoal>
        <plugins>
          <plugin>
            <artifactId>maven-deploy-plugin</artifactId>
            <configuration>
              <skip>false</skip>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>
