<?xml version="1.0" encoding="UTF-8"?>

<!--
  ~ Grakn - A Distributed Semantic Database
  ~ Copyright (C) 2016  Grakn Labs Limited
  ~
  ~ Grakn is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ Grakn is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>.
  -->
<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>ai.grakn</groupId>
    <artifactId>grakn</artifactId>
    <packaging>pom</packaging>
    <version>0.7.0</version>
    <name>Grakn</name>
    <description>A distributed semantic graph database.</description>
    <url>https://grakn.ai/pages/platform/index.html</url>
    <modules>
        <module>grakn-graph</module>
        <module>grakn-titan-factory</module>
        <module>grakn-graql</module>
        <module>grakn-graql-shell</module>
        <module>grakn-engine</module>
        <module>grakn-dashboard</module>
        <module>grakn-migration</module>
        <module>grakn-dist</module>
        <module>grakn-test</module>
        <module>grakn-core</module>
        <module>grakn-orientdb-factory</module>
    </modules>

    <properties>
        <java.version>1.8</java.version>
        <tinkerpop.version>3.1.1-incubating</tinkerpop.version>
        <junit.version>4.12</junit.version>
        <titan.version>1.1.0-SNAPSHOT</titan.version>
        <guava.version>19.0</guava.version>
        <antlr.version>4.5</antlr.version>
        <jline.version>2.12</jline.version>
        <commons-cli.version>1.3</commons-cli.version>
        <spark-core.version>2.5.1</spark-core.version>
        <commons-collections.version>3.2.1</commons-collections.version>
        <commons-csv.version>1.3</commons-csv.version>
        <json.version>20160212</json.version>
        <halbuilder-standard.version>4.0.1</halbuilder-standard.version>
        <rest-assured.version>2.7.0</rest-assured.version>
        <java-tuples.version>1.2</java-tuples.version>
        <spark.version>1.5.2</spark.version>
        <jinjava.version>2.1.0</jinjava.version>
        <airline.version>0.6</airline.version>
        <antlr4.visitor>true</antlr4.visitor>
        <swagger.version>1.5.8</swagger.version>
        <websocket.version>1.1</websocket.version>
        <jetty.version>9.3.6.v20151106</jetty.version>
        <mjson.version>1.4.0</mjson.version>
        <orientdb.version>3.2.1.2</orientdb.version>
        <orientdb-gremlin-core.version>3.2.1</orientdb-gremlin-core.version>
        <logback.version>1.1.7</logback.version>
        <junit.version>4.11</junit.version>
        <csv.version>3.8</csv.version>
        <jool.version>3.8.5</jool.version>
        <cassandra-unit.version>2.1.9.2</cassandra-unit.version>
        <h2-database.version>1.4.192</h2-database.version>
        <hermit.version>1.3.8.500</hermit.version>
        <owl-api.version>5.0.2</owl-api.version>
        <systen-rules.version>1.16.0</systen-rules.version>
    </properties>

    <organization>
      <name>Grakn Labs Ltd</name>
      <url>https://grakn.ai</url>
    </organization>

    <licenses>
        <license>
            <name>GNU General Public License Version 3 (GPLv3)</name>
            <url>https://www.gnu.org/licenses/gpl.txt</url>
        </license>
    </licenses>

    <developers>
        <developer>
            <name>Haikal Pribadi</name>
            <email>haikal@grakn.ai</email>
            <organization>Grakn Labs</organization>
            <organizationUrl>http://grakn.ai</organizationUrl>
        </developer>
        <developer>
            <name>Borislav Iordanov</name>
            <email>borislav@grakn.ai</email>
            <organization>Grakn Labs</organization>
            <organizationUrl>http://grakn.ai</organizationUrl>
        </developer>
        <developer>
            <name>Filipe Teixeira</name>
            <email>filipe@grakn.ai</email>
            <organization>Grakn Labs</organization>
            <organizationUrl>http://grakn.ai</organizationUrl>
        </developer>
        <developer>
            <name>Felix Chapman</name>
            <email>felix@grakn.ai</email>
            <organization>Grakn Labs</organization>
            <organizationUrl>http://grakn.ai</organizationUrl>
        </developer>
        <developer>
            <name>Sheldon Hall</name>
            <email>sheldon@grakn.ai</email>
            <organization>Grakn Labs</organization>
            <organizationUrl>http://grakn.ai</organizationUrl>
        </developer>
        <developer>
            <name>Alexandra Orth</name>
            <email>alexandra@grakn.ai</email>
            <organization>Grakn Labs</organization>
            <organizationUrl>http://grakn.ai</organizationUrl>
        </developer>
        <developer>
            <name>Jason Liu</name>
            <email>jason@grakn.ai</email>
            <organization>Grakn Labs</organization>
            <organizationUrl>http://grakn.ai</organizationUrl>
        </developer>
        <developer>
            <name>Marco Scoppetta</name>
            <email>marco@grakn.ai</email>
            <organization>Grakn Labs</organization>
            <organizationUrl>http://grakn.ai</organizationUrl>
        </developer>
        <developer>
            <name>Kasper Piskorski</name>
            <email>kasper@grakn.ai</email>
            <organization>Grakn Labs</organization>
            <organizationUrl>http://grakn.ai</organizationUrl>
        </developer>
        <developer>
            <name>Denis Igorevich Lobanov</name>
            <email>denis@grakn.ai</email>
            <organization>Grakn Labs</organization>
            <organizationUrl>http://grakn.ai</organizationUrl>
        </developer>
    </developers>

    <scm>
        <connection>scm:git:git://github.com/graknlabs/grakn.git</connection>
        <developerConnection>scm:git:ssh://github.com:graknlabs/grakn.git</developerConnection>
        <url>https://github.com/graknlabs/grakn/tree/master</url>
    </scm>

    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <distributionManagement>
      <snapshotRepository>
        <id>ossrh</id>
        <url>https://oss.sonatype.org/content/repositories/snapshots</url>
      </snapshotRepository>
      <repository>
        <id>ossrh</id>
        <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
      </repository>
    </distributionManagement>
    <repositories>
        <!--Snapshot repository for 3rd party libraries -->
        <repository>
            <id>development-snapshots</id>
            <url>https://maven.grakn.ai/content/repositories/snapshots/</url>
        </repository>
    </repositories>


    <build>
        <plugins>
            <plugin>
                <groupId>org.eluder.coveralls</groupId>
                <artifactId>coveralls-maven-plugin</artifactId>
                <version>4.2.0</version>
                <configuration>
                    <sourceEncoding>UTF-8</sourceEncoding>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>0.7.6.201602180812</version>
                <executions>
                    <execution>
                        <id>prepare-agent</id>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <excludes>
                        <exclude>**/antlr/**</exclude>
                    </excludes>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.5.1</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                </configuration>
            </plugin>
            <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-source-plugin</artifactId>
               <version>2.2.1</version>
               <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar-no-fork</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.9.1</version>
                <configuration>
                    <additionalparam>-Xdoclint:none</additionalparam>
                    <header><![CDATA[<a href="https://grakn.ai" target="_top">Grakn</a>]]></header>
                    <bottom><![CDATA[Copyright &#169; {currentYear} <a href="https://grakn.ai" target="_top">Grakn Labs Ltd</a>. All rights reserved.]]></bottom>
                </configuration>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>attach-aggregate-javadocs</id>
                        <goals>
                            <goal>aggregate-jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <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-failsafe-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>integration-test</goal>
                            <goal>verify</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>release-sign-artifacts</id>
            <activation>
                <property>
                    <name>performRelease</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>1.4</version>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

</project>
