<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://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>de.tototec</groupId>
  <artifactId>de.tototec.utils.functional</artifactId>
  <version>2.0.1</version>
  <packaging>bundle</packaging>
  <name>Functional Utils</name>
  <description>Functional Utility Classes for working with Java 5+</description>
  <url>https://github.com/ToToTec/de.tototec.utils.functional</url>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <developers>
    <developer>
      <name>Tobias Roeser</name>
      <email>le.petit.fou@web.de</email>
    </developer>
  </developers>
  <scm>
    <url>https://github.com/ToToTec/de.tototec.utils.functional</url>
  </scm>
  <properties>
    <maven.compiler.testSource>1.8</maven.compiler.testSource>
    <maven.compiler.testTarget>1.8</maven.compiler.testTarget>
    <maven.compiler.source>1.5</maven.compiler.source>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.target>1.5</maven.compiler.target>
    <bundle.namespace>de.tototec.utils.functional</bundle.namespace>
  </properties>
  <dependencies>
    <dependency>
      <groupId>org.testng</groupId>
      <artifactId>testng</artifactId>
      <version>6.14.3</version>
      <scope>test</scope>
      <optional>false</optional>
    </dependency>
    <dependency>
      <groupId>de.tototec</groupId>
      <artifactId>de.tobiasroeser.lambdatest</artifactId>
      <version>0.5.0</version>
      <scope>test</scope>
      <optional>false</optional>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.7.25</version>
      <scope>test</scope>
      <optional>false</optional>
    </dependency>
    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-classic</artifactId>
      <version>1.2.3</version>
      <scope>test</scope>
      <optional>false</optional>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>animal-sniffer-maven-plugin</artifactId>
        <version>1.15</version>
        <extensions>false</extensions>
        <executions>
          <execution>
            <id>signature-check</id>
            <phase>test</phase>
            <goals>
              <goal>check</goal>
            </goals>
            <inherited>true</inherited>
          </execution>
        </executions>
        <inherited>true</inherited>
        <configuration>
          <signature>
            <groupId>org.codehaus.mojo.signature</groupId>
            <artifactId>java15</artifactId>
            <version>1.0</version>
          </signature>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>3.2.0</version>
        <extensions>true</extensions>
        <executions>
          <execution>
            <phase>verify</phase>
            <goals>
              <goal>baseline</goal>
            </goals>
            <inherited>true</inherited>
            <configuration>
              <failOnError>false</failOnError>
            </configuration>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>biz.aQute.bnd</groupId>
            <artifactId>biz.aQute.bndlib</artifactId>
            <version>3.2.0</version>
            <optional>false</optional>
          </dependency>
        </dependencies>
        <inherited>true</inherited>
        <configuration>
          <unpackBundle>true</unpackBundle>
          <instructions>
            <_include>osgi.bnd</_include>
          </instructions>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>3.0.0</version>
        <extensions>false</extensions>
        <inherited>true</inherited>
        <configuration>
          <source>${maven.compiler.source}</source>
          <doclet>org.asciidoctor.Asciidoclet</doclet>
          <docletArtifact>
            <groupId>org.asciidoctor</groupId>
            <artifactId>asciidoclet</artifactId>
            <version>1.5.4</version>
          </docletArtifact>
          <overview>README.adoc</overview>
          <additionalparam>--base-dir "${project.basedir}"
 --attribute "name=de.tototec.utils.functional"
 --attribute "version=2.0.1"
 --attribute "functionalversion=2.0.1"
 --attribute "title-link=https://github.com/ToToTec/de.tototec.utils.functional[de.tototec.utils.functional 2.0.1]"
 --attribute "env-asciidoclet=true"</additionalparam>
        </configuration>
      </plugin>
      <plugin>
        <groupId>io.github.zlika</groupId>
        <artifactId>reproducible-build-maven-plugin</artifactId>
        <version>0.7</version>
        <extensions>false</extensions>
        <executions>
          <execution>
            <goals>
              <goal>strip-jar</goal>
            </goals>
            <inherited>true</inherited>
          </execution>
        </executions>
        <inherited>true</inherited>
      </plugin>
      <plugin>
        <artifactId>maven-deploy-plugin</artifactId>
        <version>2.8.2</version>
        <extensions>false</extensions>
        <inherited>true</inherited>
        <configuration>
          <skip>true</skip>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <version>1.6.7</version>
            <extensions>false</extensions>
            <executions>
              <execution>
                <id>deploy-to-ossrh</id>
                <goals>
                  <goal>deploy</goal>
                </goals>
                <inherited>true</inherited>
                <configuration>
                  <skipNexusStagingDeployMojo>false</skipNexusStagingDeployMojo>
                  <serverId>ossrh</serverId>
                  <nexusUrl>https://oss.sonatype.org</nexusUrl>
                  <autoReleaseAfterClose>true</autoReleaseAfterClose>
                </configuration>
              </execution>
            </executions>
            <inherited>true</inherited>
          </plugin>
          <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <version>1.8</version>
            <extensions>false</extensions>
            <executions>
              <execution>
                <id>prepare-nexus-staging</id>
                <phase>initialize</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <inherited>true</inherited>
                <configuration>
                  <target>
                    <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath" />
                    <if>
                      <available file="${project.basedir}/mvn-deploy-settings.xml" />
                      <else>
                        <echo file="${project.basedir}/mvn-deploy-settings.xml" message="&lt;settings>${line.separator}" append="true" />
                        <echo file="${project.basedir}/mvn-deploy-settings.xml" message="  &lt;servers>${line.separator}" append="true" />
                        <echo file="${project.basedir}/mvn-deploy-settings.xml" message="    &lt;server>${line.separator}" append="true" />
                        <echo file="${project.basedir}/mvn-deploy-settings.xml" message="      &lt;id>ossrh&lt;/id>${line.separator}" append="true" />
                        <echo file="${project.basedir}/mvn-deploy-settings.xml" message="      &lt;!-- Enter your credentials here -->${line.separator}" append="true" />
                        <echo file="${project.basedir}/mvn-deploy-settings.xml" message="      &lt;username>your-username&lt;/username>${line.separator}" append="true" />
                        <echo file="${project.basedir}/mvn-deploy-settings.xml" message="      &lt;password>your-password&lt;/password>${line.separator}" append="true" />
                        <echo file="${project.basedir}/mvn-deploy-settings.xml" message="    &lt;/server>${line.separator}" append="true" />
                        <echo file="${project.basedir}/mvn-deploy-settings.xml" message="  &lt;/servers>${line.separator}" append="true" />
                        <echo file="${project.basedir}/mvn-deploy-settings.xml" message="&lt;/settings>${line.separator}" append="true" />
                        <fail unless="deploy-settings" message="Created the file 'mvn-deploy-settings.xml'.${line.separator}For deployment edit and add your credentials and then run:${line.separator}  'mvn -s mvn-deploy-settings.xml -Prelease clean deploy'" />
                      </else>
                    </if>
                  </target>
                </configuration>
              </execution>
              <execution>
                <id>post-clean-info</id>
                <phase>deploy</phase>
                <goals>
                  <goal>run</goal>
                </goals>
                <inherited>true</inherited>
                <configuration>
                  <target>
                    <echo message="Don't forget to clean/delete 'mvn-deploy-settings.xml'" />
                  </target>
                </configuration>
              </execution>
            </executions>
            <dependencies>
              <dependency>
                <groupId>ant-contrib</groupId>
                <artifactId>ant-contrib</artifactId>
                <version>1.0b3</version>
                <exclusions>
                  <exclusion>
                    <artifactId>*</artifactId>
                    <groupId>*</groupId>
                  </exclusion>
                </exclusions>
                <optional>false</optional>
              </dependency>
            </dependencies>
            <inherited>true</inherited>
          </plugin>
          <plugin>
            <artifactId>maven-source-plugin</artifactId>
            <version>3.0.1</version>
            <extensions>false</extensions>
            <executions>
              <execution>
                <id>attach-sources</id>
                <goals>
                  <goal>jar</goal>
                </goals>
                <inherited>true</inherited>
              </execution>
            </executions>
            <inherited>true</inherited>
          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>3.0.0</version>
            <extensions>false</extensions>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
                <inherited>true</inherited>
              </execution>
            </executions>
            <inherited>true</inherited>
          </plugin>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.6</version>
            <extensions>false</extensions>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
                <inherited>true</inherited>
              </execution>
            </executions>
            <inherited>true</inherited>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>
