<?xml version="1.0" encoding="UTF-8"?>
<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>org.heigit.ohsome</groupId>
  <artifactId>ohsome-parent</artifactId>
  <version>2.2</version>
  <packaging>pom</packaging>

  <name>HeiGIT ohsome parent</name>
  <url>https://gitlab.gistools.geog.uni-heidelberg.de/giscience/big-data/ohsome/parent</url>
  <description>Spatial and temporal analyses of crowd-sourced and other geodata</description>
  <inceptionYear>2016</inceptionYear>
  <organization>
    <name>HeiGIT</name>
    <url>https://heigit.org/</url>
  </organization>

  <licenses>
    <license>
      <name>GNU General Public License, Version 3</name>
      <url>http://www.gnu.org/licenses/gpl-3.0.txt</url>
      <distribution>repo</distribution>
      <comments>The GNU General Public License is a free, copyleft license for software and other kinds of works.</comments>
    </license>
    <license>
      <name>GNU Lesser General Public License, Version 3</name>
      <url>http://www.gnu.org/licenses/lgpl.txt</url>
      <distribution>repo</distribution>
      <comments>A more business-friendly addition to the gpl 3.0.</comments>
    </license>
  </licenses>
  
  <developers>
    <developer>
      <id>ohsome</id>
      <name>ohsome team</name>
      <email>ohsome@heigit.org</email>
      <url>https://www.ohsome.org</url>
    </developer>
  </developers>
  
  <ciManagement>
    <system>Jenkins</system>
    <url>https://jenkins.ohsome.org/</url>
  </ciManagement>
  
  <distributionManagement>
    <downloadUrl>https://repo.heigit.org/artifactory/</downloadUrl>
    <repository>
      <id>ohsome releases</id>
      <name>Heigit/GIScience repository</name>
      <uniqueVersion>false</uniqueVersion>
      <url>https://repo.heigit.org/artifactory/libs-release-local</url>
      <layout>default</layout>
    </repository>
    <snapshotRepository>
      <id>ohsome snapshots</id>
      <name>Heigit/GIScience repository (snapshots)</name>
      <uniqueVersion>true</uniqueVersion>
      <url>https://repo.heigit.org/artifactory/libs-snapshot-local</url>
      <layout>default</layout>
    </snapshotRepository>
  </distributionManagement>

  <scm>
    <connection>scm:git:git@gitlab.gistools.geog.uni-heidelberg.de:2022/giscience/big-data/ohsome/parent.git</connection>
    <developerConnection>scm:git:git@gitlab.gistools.geog.uni-heidelberg.de:2022/giscience/big-data/ohsome/parent.git</developerConnection>
    <url>https://gitlab.gistools.geog.uni-heidelberg.de/giscience/big-data/ohsome/parent</url>
  </scm>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <java.version>1.8</java.version>
    <checkstyle.version>8.29</checkstyle.version>
    <mavencheckstyle.version>3.1.1</mavencheckstyle.version>
    <mavencompiler.version>3.8.0</mavencompiler.version>
    <mavengpg.version>1.6</mavengpg.version>
    <nexusstagingmaven.version>1.6.8</nexusstagingmaven.version>
  </properties>
  
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>${mavencompiler.version}</version>
        <configuration>
          <source>${java.version}</source>
          <target>${java.version}</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <version>${mavencheckstyle.version}</version>
        <configuration>
          <configLocation>checkstyle-google-ohsome.xml</configLocation>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>com.puppycrawl.tools</groupId>
            <artifactId>checkstyle</artifactId>
            <version>${checkstyle.version}</version>
          </dependency>
          <dependency>
            <groupId>org.heigit.ohsome</groupId>
            <artifactId>ohsome-codestyle</artifactId>
            <version>2.2</version>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <id>sign</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>${mavengpg.version}</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
                <configuration>
                  <gpgArguments>
                    <arg>--pinentry-mode</arg>
                    <arg>loopback</arg>
                  </gpgArguments>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>deploy-central</id>
      <distributionManagement>
        <snapshotRepository>
          <id>ossrh</id>
          <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
      </distributionManagement>
      <build>
        <plugins>
          <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <version>${nexusstagingmaven.version}</version>
            <extensions>true</extensions>
            <configuration>
              <serverId>ossrh</serverId>
              <nexusUrl>https://oss.sonatype.org/</nexusUrl>
              <autoReleaseAfterClose>false</autoReleaseAfterClose>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

  <modules>
    <module>ohsome-codestyle</module>
  </modules>
</project>
