<?xml version="1.0" encoding="UTF-8"?>
<!--  ~ Copyright (c) 2023 - Frank Hossfeld  ~  ~  Licensed under the Apache License, Version 2.0 (the "License"); you may not  ~  use this file except in compliance with the License. You may obtain a copy of  ~  the License at  ~  ~  http://www.apache.org/licenses/LICENSE-2.0  ~  ~  Unless required by applicable law or agreed to in writing, software  ~  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  ~  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the  ~  License for the specific language governing permissions and limitations under  ~  the License.  ~  -->
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.github.nalukit</groupId>
  <artifactId>malio-parent</artifactId>
  <version>0.2.0-beta</version>
  <packaging>pom</packaging>
  <name>malio-parent</name>
  <description>Validation library for Java, GWT and J2CL</description>
  <url>https://github.com/nalukit/malio</url>
  <inceptionYear>2023</inceptionYear>
  <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>
  <developers>
    <developer>
      <id>frankhossfeld</id>
      <name>Frank Hossfeld</name>
      <email>contact@nalu-solutions.de</email>
      <organization>Nalu Solutions GmbH</organization>
      <roles>
        <role>Java Developer</role>
      </roles>
    </developer>
    <developer>
      <id>philippkohl</id>
      <name>Philipp Kohl</name>
      <email>contact@nalu-solutions.de</email>
      <organization>Nalu Solutions GmbH</organization>
      <roles>
        <role>Java Developer</role>
      </roles>
    </developer>
  </developers>
  <modules>
    <module>malio</module>
    <module>malio-processor</module>
    <module>malio-tests</module>
    <module>malio-gwt2-tests</module>
    <module>malio-j2cl-tests</module>
  </modules>
  <scm>
    <connection>scm:git@github.com:nalukit/malio.git</connection>
    <developerConnection>scm:git:git@github.com:nalukit/malio.git</developerConnection>
    <url>scm:git:https://github.com/nalukit/malio</url>
  </scm>
  <issueManagement>
    <system>GitHub</system>
    <url>https://github.com/nalukit/malio/issues</url>
  </issueManagement>
  <distributionManagement>
    <repository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
    <snapshotRepository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
    </snapshotRepository>
  </distributionManagement>
  <properties>
    <auto-service.version>1.0.1</auto-service.version>
    <gwt.version>2.10.0</gwt.version>
    <truth.version>1.1.3</truth.version>
    <plugin.version.clean>3.1.0</plugin.version.clean>
    <plugin.version.gpg.maven>1.6</plugin.version.gpg.maven>
    <elemental2.version>1.1.0</elemental2.version>
    <gson.version>2.10.1</gson.version>
    <plugin.version.flatten>1.2.2</plugin.version.flatten>
    <plugin.version.source>3.2.1</plugin.version.source>
    <plugin.version.nexus.staging>1.6.8</plugin.version.nexus.staging>
    <javapoet.version>1.13.0</javapoet.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <plugin.version.replacer>1.5.2</plugin.version.replacer>
    <revision>0.2.0-beta</revision>
    <maven.compiler.source>1.8</maven.compiler.source>
    <plugin.version.javadoc>3.2.0</plugin.version.javadoc>
    <junit-jupiter-platform.version>1.9.2</junit-jupiter-platform.version>
    <plugin.version.license>4.2</plugin.version.license>
    <maven.deploy.plugin>3.0.0-M1</maven.deploy.plugin>
    <guava.version>31.1-jre</guava.version>
    <maven.compiler.target>1.8</maven.compiler.target>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <path.test.resources>${project.build.testSourceDirectory}/../resources/</path.test.resources>
    <plugin.version.project.info.report>3.0.0</plugin.version.project.info.report>
    <junit-jupiter.version>5.9.2</junit-jupiter.version>
    <plugin.version.surefire>3.0.0</plugin.version.surefire>
    <compile-testing.version>0.21.0</compile-testing.version>
  </properties>
  <repositories>
    <repository>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <id>oss-sonatype</id>
      <name>oss-sonatype</name>
      <url>https://oss.sonatype.org/content/repositories/google-snapshots/</url>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <id>sonatype-plugins</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
    </pluginRepository>
  </pluginRepositories>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-project-info-reports-plugin</artifactId>
          <version>${plugin.version.project.info.report}</version>
        </plugin>
        <plugin>
          <groupId>org.sonatype.plugins</groupId>
          <artifactId>nexus-staging-maven-plugin</artifactId>
          <version>${plugin.version.sonatype}</version>
        </plugin>
        <plugin>
          <groupId>com.github.github</groupId>
          <artifactId>site-maven-plugin</artifactId>
          <version>${plugin.version.github.site}</version>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <version>${plugin.version.flatten}</version>
        <executions>
          <execution>
            <id>flatten</id>
            <phase>package</phase>
            <goals>
              <goal>flatten</goal>
            </goals>
          </execution>
          <execution>
            <id>flatten.clean</id>
            <phase>clean</phase>
            <goals>
              <goal>clean</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <updatePomFile>true</updatePomFile>
          <flattenMode>resolveCiFriendliesOnly</flattenMode>
        </configuration>
      </plugin>
      <plugin>
        <groupId>com.mycila</groupId>
        <artifactId>license-maven-plugin</artifactId>
        <version>${plugin.version.license}</version>
        <executions>
          <execution>
            <phase>validate</phase>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <header>LICENSE.header</header>
          <encoding>${project.build.sourceEncoding}</encoding>
          <skipExistingHeaders>true</skipExistingHeaders>
          <mapping>
            <java>SLASHSTAR_STYLE</java>
          </mapping>
          <excludes>
            <exclude>**/README.md</exclude>
            <exclude>**/LICENSE</exclude>
            <exclude>**/LICENSE.header</exclude>
            <exclude>**/AUTHORS</exclude>
            <exclude>**/src/test/resources/**</exclude>
            <exclude>**/src/main/resources/**</exclude>
            <exclude>**/pom.xml</exclude>
            <exclude>**/.flattened-pom.xml</exclude>
            <exclude>**/war/</exclude>
            <exclude>**/gwt-unitcache</exclude>
          </excludes>
          <properties>
            <year>${project.inceptionYear}</year>
          </properties>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.6</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>
            <configuration>
              <gpgArguments>
                <arg>--pinentry-mode</arg>
                <arg>loopback</arg>
              </gpgArguments>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>3.2.0</version>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
                <configuration>
                  <javadocExecutable>/opt/hostedtoolcache/Java_Adopt_jdk/8.0.372-7/x64/jre/../bin/javadoc</javadocExecutable>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <javadocExecutable>/opt/hostedtoolcache/Java_Adopt_jdk/8.0.372-7/x64/jre/../bin/javadoc</javadocExecutable>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-source-plugin</artifactId>
            <version>3.2.1</version>
            <executions>
              <execution>
                <id>attach-sources</id>
                <goals>
                  <goal>jar-no-fork</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
      <modules>
        <module>malio</module>
        <module>malio-processor</module>
      </modules>
    </profile>
    <profile>
      <id>jdk-8-config</id>
      <activation>
        <jdk>1.8</jdk>
      </activation>
      <properties>
        <javadocExecutable>${java.home}/../bin/javadoc</javadocExecutable>
      </properties>
    </profile>
  </profiles>
</project>
