<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/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>net.quasardb</groupId>
  <artifactId>qdb</artifactId>
  <packaging>jar</packaging>
  <name>quasardb</name>
  <description>Java API for the QuasarDB database</description>
  <version>0.0.1</version>
  <url>http://www.quasardb.net/</url>
  <licenses>
    <license>
      <name>3-Clause BSD License</name>
      <url>https://opensource.org/licenses/BSD-3-Clause</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <scm>
    <url>https://github.com/bureau14/qdb-api-java</url>
    <connection>scm:git:git://github.com/bureau14/qdb-api-java.git</connection>
    <developerConnection>scm:git:git@github.com:bureau14/qdb-api-java.git</developerConnection>
  </scm>
  <developers>
    <developer>
      <email>leon@quasardb.net</email>
      <name>Leon Mergen</name>
      <url>https://github.com/solatis</url>
      <id>solatis</id>
    </developer>
  </developers>

  <dependencies>
    <dependency>
      <groupId>net.quasardb</groupId>
      <artifactId>qdb</artifactId>
      <version>0.0.1</version>
      <classifier>jni</classifier>
    </dependency>
    <dependency>
      <groupId>net.quasardb</groupId>
      <artifactId>qdb</artifactId>
      <version>0.0.1</version>
      <classifier>jni-${os.detected.name}-${os.detected.arch}</classifier>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.12</version>
    </dependency>
    <dependency>
      <groupId>org.hamcrest</groupId>
      <artifactId>hamcrest-all</artifactId>
      <version>1.3</version>
    </dependency>
  </dependencies>

  <distributionManagement>
    <snapshotRepository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
  </distributionManagement>

  <build>
    <extensions>
      <extension>
        <groupId>kr.motd.maven</groupId>
        <artifactId>os-maven-plugin</artifactId>
        <version>1.6.0</version>
      </extension>
    </extensions>
    <plugins>
      <plugin>
        <groupId>org.sonatype.plugins</groupId>
        <artifactId>nexus-staging-maven-plugin</artifactId>
        <version>1.6.7</version>
        <extensions>true</extensions>
        <configuration>
          <serverId>ossrh</serverId>
          <nexusUrl>https://oss.sonatype.org/</nexusUrl>
          <autoReleaseAfterClose>true</autoReleaseAfterClose>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.7.0</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>

      <plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-source-plugin</artifactId>
	<version>2.2.1</version>
	<executions>
	  <execution>
	    <id>package-sources</id>
	    <phase>package</phase>
	    <goals>
	      <goal>jar-no-fork</goal>
	      <goal>test-jar</goal>
	    </goals>
	  </execution>
	</executions>
      </plugin>
      <plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-javadoc-plugin</artifactId>
	<version>2.9.1</version>
	<executions>
	  <execution>
	    <id>package-javadocs</id>
	    <phase>package</phase>
	    <goals>
	      <goal>jar</goal>
	      <goal>test-jar</goal>
	    </goals>
	  </execution>
	</executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-gpg-plugin</artifactId>
        <version>1.5</version>
        <executions>
          <execution>
            <id>sign-artifacts</id>
            <phase>verify</phase>
            <goals>
              <goal>sign</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>3.0.0</version>
        <executions>
          <execution>
            <id>attach-artifacts</id>
            <phase>package</phase>
            <goals>
              <goal>attach-artifact</goal>
            </goals>
            <configuration>
              <artifacts>
                <artifact>
                  <file>${project.basedir}/jni.jar</file>
                  <type>jar</type>
                  <classifier>jni</classifier>
                </artifact>
                <artifact>
                  <file>${project.basedir}/jni-linux-x86_64.jar</file>
                  <type>jar</type>
                  <classifier>jni-linux-x86_64</classifier>
                </artifact>
                <artifact>
                  <file>${project.basedir}/jni-osx-x86_64.jar</file>
                  <type>jar</type>
                  <classifier>jni-osx-x86_64</classifier>
                </artifact>
                <artifact>
                  <file>${project.basedir}/jni-freebsd-x86_64.jar</file>
                  <type>jar</type>
                  <classifier>jni-freebsd-x86_64</classifier>
                </artifact>
                <artifact>
                  <file>${project.basedir}/jni-windows-x86_64.jar</file>
                  <type>jar</type>
                  <classifier>jni-windows-x86_64</classifier>
                </artifact>
                <artifact>
                  <file>${project.basedir}/jni-windows-x86_32.jar</file>
                  <type>jar</type>
                  <classifier>jni-windows-x86_32</classifier>
                </artifact>
              </artifacts>
            </configuration>
          </execution>
        </executions>
      </plugin>

    </plugins>
  </build>
</project>
