<!--
  #%L
  POM :: Nuiton
  %%
  Copyright (C) 2014 - 2020 Code Lutin
  %%
  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU Lesser General Public License as
  published by the Free Software Foundation, either version 3 of the
  License, or (at your option) any later version.
  
  This program 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 Lesser Public License for more details.
  
  You should have received a copy of the GNU General Lesser Public
  License along with this program.  If not, see
  <http://www.gnu.org/licenses/lgpl-3.0.html>.
  #L%
  -->
<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>

  <parent>
    <groupId>org.nuiton</groupId>
    <artifactId>pom</artifactId>
    <version>11.19</version>
  </parent>

  <artifactId>nuitonpom</artifactId>
  <packaging>pom</packaging>

  <name>POM :: Nuiton</name>
  <description>A shared pom for Nuiton's maven projects</description>

  <properties>
    <gitlabGroupName>nuiton</gitlabGroupName>

    <!-- Deploy on central release repository -->
    <release.repository>${central.release.repository}</release.repository>
    <repository.home.url>${central.release.home.url}</repository.home.url>

    <!-- default piwikId for nuiton.org -->
    <piwikId>2</piwikId>

    <!-- issues status to include in changelog -->
    <redmine.statusIds>3,4,5</redmine.statusIds>

    <!--par defaut on déploie tout-->
    <maven.deploy.skip>false</maven.deploy.skip>
    <!--par default on construit la javadoc-->
    <maven.javadoc.skip>false</maven.javadoc.skip>
    <!--par defaut on construit les sources-->
    <maven.source.skip>false</maven.source.skip>
  </properties>

  <profiles>

    <profile>
      <id>post-release-profile</id>
      <properties>

        <!-- To generate release announcements -->
        <redmine.templateDirectory>
          http://doc.nuiton.org/common/0.3/announcement/nuiton.org
        </redmine.templateDirectory>

      </properties>
    </profile>

    <!-- Profile to build the pom project -->
    <profile>
      <id>internal</id>
      <activation>
        <file>
          <exists>${basedir}/../.pom-project-do-not-delete.txt</exists>
        </file>
      </activation>
      <properties>
        <gitlabProjectName>pom</gitlabProjectName>

        <!-- POM est le seul projet qui n'a pas de version de Java, donc on laisse
             le contrôle sur tous les projets mais on met une version bidon -->
        <javaVersion>1.8</javaVersion>

        <!-- Pas un projet Java, donc pas d'animal-sniffer -->
        <animal.sniffer.skip>true</animal.sniffer.skip>

        <!-- Deploy on central release repository -->
        <release.repository>${central.release.repository}</release.repository>
        <repository.home.url>${central.release.home.url}</repository.home.url>

        <maven.deploy.skip>false</maven.deploy.skip>
      </properties>
    </profile>

  </profiles>

</project>

