<?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/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>it.agilelab.log4j</groupId>
  <artifactId>async-fluentd-http-appender</artifactId>
  <name>${project.groupId}:${project.artifactId}</name>
  <version>1.0</version>
  <description>A application used as an example on how to set up pushing
        its components to the Central Repository.</description>
  <url>https://gitlab.com/AgileFactory/developers/async-fluentd-http-appender/</url>
  <developers>
    <developer>
      <name>Andrea Fonti</name>
      <email>andrea.fonti@agilelab.it</email>
      <organization>AgileLab S.R.L.</organization>
      <organizationUrl>www.agilelab.it</organizationUrl>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>The Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>
  <scm>
    <connection>scm:git:git://gitlab.com:AgileFactory/developers/async-fluentd-http-appender.git</connection>
    <developerConnection>scm:git:ssh://gitlab.com:AgileFactory/developers/async-fluentd-http-appender.git</developerConnection>
    <url>https://gitlab.com/AgileFactory/developers/async-fluentd-http-appender</url>
  </scm>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-shade-plugin</artifactId>
          <version>3.2.4</version>
          <executions>
            <execution>
              <phase>package</phase>
              <goals>
                <goal>shade</goal>
              </goals>
            </execution>
          </executions>
          <configuration>
            <shadeTestJar>false</shadeTestJar>
            <minimizeJar>false</minimizeJar>
            <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
            <shadeSourcesContent>true</shadeSourcesContent>
            <artifactSet>
              <includes>
                <include>org.apache.httpcomponents:httpcore</include>
                <include>org.apache.httpcomponents:httpclient</include>
                <include>org.apache.commons:*</include>
                <include>commons-codec:*</include>
                <include>commons-logging:*</include>
              </includes>
            </artifactSet>
            <relocations>
              <relocation>
                <pattern>org.apache.commons</pattern>
                <shadedPattern>it.agilelab.log4j.shaded.org.apache.commons</shadedPattern>
              </relocation>
              <relocation>
                <pattern>org.apache.http</pattern>
                <shadedPattern>it.agilelab.log4j.shaded.org.apache.http</shadedPattern>
              </relocation>
            </relocations>
            <filters>
              <filter>
                <artifact>*:*</artifact>
                <excludes>
                  <exclude>META-INF/license/**</exclude>
                  <exclude>META-INF/*</exclude>
                  <exclude>META-INF/maven/**</exclude>
                  <exclude>LICENSE</exclude>
                  <exclude>NOTICE</exclude>
                  <exclude>/*.txt</exclude>
                  <exclude>build.properties</exclude>
                </excludes>
              </filter>
            </filters>
          </configuration>
        </plugin>
        <plugin>
          <groupId>pw.krejci</groupId>
          <artifactId>jmh-maven-plugin</artifactId>
        </plugin>
        <plugin>
          <artifactId>maven-clean-plugin</artifactId>
          <version>3.1.0</version>
        </plugin>
        <plugin>
          <artifactId>maven-resources-plugin</artifactId>
          <version>3.0.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.8.0</version>
        </plugin>
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.22.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
          <version>3.0.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-install-plugin</artifactId>
          <version>2.5.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-deploy-plugin</artifactId>
          <version>2.8.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-site-plugin</artifactId>
          <version>3.7.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-project-info-reports-plugin</artifactId>
          <version>3.0.0</version>
        </plugin>
        <plugin>
          <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>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>2.9.1</version>
          <executions>
            <execution>
              <id>attach-javadocs</id>
              <goals>
                <goal>jar</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <artifactId>maven-gpg-plugin</artifactId>
          <version>1.5</version>
          <executions>
            <execution>
              <id>sign-artifacts</id>
              <phase>verify</phase>
              <goals>
                <goal>sign</goal>
              </goals>
              <configuration>
                <skip>${sign.skip}</skip>
                <passphrase>${env.GPG_PASSPHRASE}</passphrase>
                <keyname>${env.GPG_KEY_ID}</keyname>
                <gpgArguments>
                  <arg>--pinentry-mode</arg>
                  <arg>loopback</arg>
                </gpgArguments>
              </configuration>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <groupId>org.sonatype.plugins</groupId>
          <artifactId>nexus-staging-maven-plugin</artifactId>
          <version>1.6.7</version>
          <extensions>true</extensions>
          <configuration>
            <skipNexusStagingDeployMojo>${skipIfVersionIsNonSnapshotAndTheBuildIsNotMaster}</skipNexusStagingDeployMojo>
            <serverId>ossrh</serverId>
            <nexusUrl>https://oss.sonatype.org/</nexusUrl>
            <autoReleaseAfterClose>true</autoReleaseAfterClose>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>pw.krejci</groupId>
        <artifactId>jmh-maven-plugin</artifactId>
        <version>0.2.2</version>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.2.1</version>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-gpg-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.sonatype.plugins</groupId>
        <artifactId>nexus-staging-maven-plugin</artifactId>
      </plugin>
    </plugins>
  </build>
  <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>
    <log4j.deps.scope>provided</log4j.deps.scope>
    <slf4j.version>1.7.30</slf4j.version>
    <http.client.version>4.5.13</http.client.version>
    <jmh.version>1.21</jmh.version>
    <maven.compiler.target>1.8</maven.compiler.target>
    <log4j.version>1.2.17</log4j.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <skipIfVersionIsNonSnapshotAndTheBuildIsNotMaster>false</skipIfVersionIsNonSnapshotAndTheBuildIsNotMaster>
    <maven.compiler.source>1.8</maven.compiler.source>
  </properties>
</project>
