<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>

  <groupId>com.github.cschoell</groupId>
  <artifactId>junit-dynamicsuite</artifactId>
  <version>0.2.5</version>
  <packaging>jar</packaging>

  <scm>
    <url>https://github.com/cschoell/Junit-DynamicSuite</url>
    <connection>scm:git:git@github.com:cschoell/Junit-DynamicSuite.git</connection>
    <developerConnection>scm:git:git@github.com:cschoell/Junit-DynamicSuite.git</developerConnection>
  </scm>

  <parent>
    <groupId>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>9</version>
  </parent>

  <developers>
    <developer>
      <id>cschoell</id>
      <name>Christof Schöll</name>
      <email>c.schoell@gmx.net</email>
    </developer>
  </developers>


  <name>JUnit Dynamic Suite</name>
  <description>Dynamic Suite Runner for JUnit 4</description>

  <url>https://github.com/cschoell/Junit-DynamicSuite</url>

  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <junit.version>4.12</junit.version>
    <commons-lang3.version>3.3.2</commons-lang3.version>
    <commons-io.version>2.4</commons-io.version>
    <mockito-all.version>1.9.5</mockito-all.version>
	<timestamp>${maven.build.timestamp}</timestamp>
	<maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
  </properties>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>${junit.version}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-lang3</artifactId>
      <version>${commons-lang3.version}</version>
    </dependency>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <version>${commons-io.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-all</artifactId>
      <version>${mockito-all.version}</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>1.7</version>
        <executions>
          <execution>
            <id>regex-property</id>
            <goals>
              <goal>regex-property</goal>
            </goals>
            <configuration>
              <name>projectBaseVersion</name>
              <value>${project.version}</value>
              <regex>^(.*?)(-SNAPSHOT)?$</regex>
              <replacement>$1</replacement>
              <failIfNoMatch>true</failIfNoMatch>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>2.4</version>
        <configuration>
          <archive>
            <manifestEntries>
              <Bundle-ManifestVersion>2</Bundle-ManifestVersion>
              <Bundle-Name>JUnit Dynamicsuite</Bundle-Name>
              <Bundle-SymbolicName>org.junit.extensions.dynamicsuite</Bundle-SymbolicName>
              <Bundle-Version>${projectBaseVersion}.${timestamp}</Bundle-Version>
              <Bundle-Vendor>Christof Schoell</Bundle-Vendor>
              <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
              <Require-Bundle>org.junit;bundle-version="${junit.version}", org.apache.commons.lang3;bundle-version="${commons-lang3.version}"</Require-Bundle>
              <Export-Package>org.junit.extensions.dynamicsuite, org.junit.extensions.dynamicsuite.suite, org.junit.extensions.dynamicsuite.filter, org.junit.extensions.dynamicsuite.sort</Export-Package>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
      
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.16</version>
    
        <configuration>
          <includes>
              <include>**/*Test.java</include>
              <include>**/*Suite.java</include>
          </includes>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>

