<?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>com.undefinedlabs.scope</groupId>
    <artifactId>scope-parent</artifactId>
    <packaging>pom</packaging>
    <version>0.14.0-beta.1</version>

    <inceptionYear>2019</inceptionYear>

    <name>Scope (Parent)</name>
    <description>
        Scope is a APM for tests to give engineering teams unprecedented visibility into their CI process to quickly
        identify, troubleshoot and fix failed builds.
        The parent artifact contains configuration information that concern all modules.
    </description>
    <url>https://scope.undefinedlabs.com</url>

    <modules>
        <module>scope-bootstrap</module>
        <module>scope-deps</module>
        <module>scope-core</module>
        <module>scope-coverage</module>
        <module>scope-runner</module>
        <module>scope-rules</module>
        <module>scope-agent</module>
        <module>scope-agent-performance-tests</module>
        <module>reports</module>
    </modules>

    <properties>
        <scope.argLine />

        <!-- General -->
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <sourcecode.main.version>1.7</sourcecode.main.version>
        <sourcecode.test.version>1.7</sourcecode.test.version>
        <scope.main.version>1.7</scope.main.version>
        <scope.test.version>1.7</scope.test.version>
        <scala.version>2.11</scala.version>
        <scala.library.version>2.11.12</scala.library.version>

        <skip.tests>false</skip.tests>
        <skip.junit5.tests>true</skip.junit5.tests>
        <skip.akka.http.tests>true</skip.akka.http.tests>
        <skip.integration.tests>true</skip.integration.tests>
        <skip.coverage.java8.tests>true</skip.coverage.java8.tests>
        <skip.performance.tests>true</skip.performance.tests>

        <!-- Compile Dependencies -->
        <opentracing.version>0.33.0</opentracing.version>
        <jackson.databind.version>2.9.10.4</jackson.databind.version>
        <jackson.core.version>2.9.10</jackson.core.version>
        <jackson.msgpack.version>0.8.20</jackson.msgpack.version>
        <jackson.threetenbp.version>2.9.10</jackson.threetenbp.version>
        <commons.lang3.version>3.8.1</commons.lang3.version>
        <commons.io.version>2.6</commons.io.version>
        <commons.net.version>3.6</commons.net.version>
        <commons.codec.version>1.14</commons.codec.version>
        <slf4j.version>1.7.25</slf4j.version>
        <!--    <logback.version>1.2.3</logback.version>-->
        <threetenbp.version>1.4.1</threetenbp.version>
        <bytebuddy.version>1.10.10</bytebuddy.version>
        <!--<okhttp3.version>3.12.2</okhttp3.version>-->
        <okhttp3.version>3.8.1</okhttp3.version>
        <tomcat.version>8.5.40</tomcat.version>
        <h2.db.version>1.4.177</h2.db.version>
        <mysql.driver.version>8.0.19</mysql.driver.version>
        <spring.version>4.3.24.RELEASE</spring.version>
        <jacoco.version>0.8.4</jacoco.version>
        <grpc.version>1.4.0</grpc.version>
        <activemq.version>5.14.5</activemq.version>
        <javax.jms.version>2.0.1</javax.jms.version>
        <toml.lib.version>0.7.2</toml.lib.version>
        <bcel.version>6.2</bcel.version>
        <http.client.version>4.5.12</http.client.version>
        <netty.all.version>4.1.41.Final</netty.all.version>
        <akka.version>2.3.16</akka.version>
        <akka.http.stream.version>2.4.14</akka.http.stream.version>
        <akka.http.version>10.0.0</akka.http.version>
        <jmh.version>1.23</jmh.version>


        <!-- Test Dependencies -->
        <junit.version>4.13</junit.version>
        <junit.jupiter.engine.version>5.4.2</junit.jupiter.engine.version>
        <junit.platform.launcher.version>1.4.2</junit.platform.launcher.version>
        <testng.version>6.14.3</testng.version>
        <scalatest.version>2.2.6</scalatest.version>
        <powermock.junit4.version>2.0.0-beta.5</powermock.junit4.version>

        <assertj.core.version>2.9.1</assertj.core.version>
        <mockito.version>1.10.19</mockito.version>

        <!-- Plugins Versions -->
        <maven.clean.plugin.version>3.1.0</maven.clean.plugin.version>
        <maven.resources.plugin.version>3.1.0</maven.resources.plugin.version>
        <maven.compiler.plugin.version>3.8.1</maven.compiler.plugin.version>
        <maven.surefire.plugin.version>2.22.2</maven.surefire.plugin.version>
        <maven.failsafe.plugin.version>2.22.2</maven.failsafe.plugin.version>
        <maven.jar.plugin.version>3.2.0</maven.jar.plugin.version>
        <maven.install.plugin.version>2.5.2</maven.install.plugin.version>
        <maven.deploy.plugin.version>2.8.2</maven.deploy.plugin.version>
        <maven.site.plugin.version>3.9.0</maven.site.plugin.version>
        <maven.project.info.reports.plugin.version>3.0.0</maven.project.info.reports.plugin.version>
        <maven.source.plugin.version>3.2.1</maven.source.plugin.version>
        <maven.javadoc.plugin.version>3.2.0</maven.javadoc.plugin.version>
        <maven.gpg.plugin.version>1.6</maven.gpg.plugin.version>
        <maven.release.plugin.version>2.5.3</maven.release.plugin.version>
        <nexus.staging.maven.plugin.version>1.6.8</nexus.staging.maven.plugin.version>
        <scala.maven.plugin.version>3.3.3</scala.maven.plugin.version>
    </properties>

    <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>
            <comments>A business-friendly OSS license</comments>
        </license>
    </licenses>

    <developers>
        <developer>
            <id>drodriguezhdez</id>
            <name>Daniel Rodriguez Hernandez</name>
            <email>daniel.rodriguez@undefinedlabs.com</email>
            <roles>
                <role>developer</role>
            </roles>
            <timezone>+1</timezone>
        </developer>
    </developers>

    <scm>
        <connection>scm:git:https://github.com/undefinedlabs/java-agent.git</connection>
        <developerConnection>scm:git:https://github.com/undefinedlabs/java-agent.git</developerConnection>
        <url>https://github.com/undefinedlabs/java-agent.git</url>
        <tag>0.14.0-beta.1</tag>
    </scm>

    <dependencyManagement>
        <dependencies>

            <dependency>
                <groupId>org.scala-lang</groupId>
                <artifactId>scala-library</artifactId>
                <version>${scala.library.version}</version>
                <scope>provided</scope>
            </dependency>

            <!-- Agent Rules -->
            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-rule-java-jmh</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-rule-akka</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-rule-akka-http</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-rule-netty</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-rule-scalatest</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-rule-junit4</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-rule-slf4j</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-rule-junit5</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-rule-testng</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-rule-okhttp3</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-rule-javanet</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-rule-javax-servlet</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-rule-tomcat</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-rule-java-sql</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-rule-grpc</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-rule-javax-jms</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-rule-apache-httpclient</artifactId>
                <version>${project.version}</version>
            </dependency>

            <!-- End Agent Rules -->

            <!-- Runner Agent Rules -->
            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-runner-junit4</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-runner-junit4-powermock</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-runner-junit5</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-runner-testng</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-runner-scalatest</artifactId>
                <version>${project.version}</version>
            </dependency>

            <!-- End Runner Agent Rules -->

            <dependency>
                <groupId>commons-codec</groupId>
                <artifactId>commons-codec</artifactId>
                <version>${commons.codec.version}</version>
            </dependency>


            <dependency>
                <groupId>javax.jms</groupId>
                <artifactId>javax.jms-api</artifactId>
                <version>${javax.jms.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-rules-api</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-deps</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-agent</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-core</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-coverage-core</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-runner-core</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-bootstrap</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>net.bytebuddy</groupId>
                <artifactId>byte-buddy</artifactId>
                <version>${bytebuddy.version}</version>
            </dependency>

            <dependency>
                <groupId>com.squareup.okhttp3</groupId>
                <artifactId>okhttp</artifactId>
                <version>${okhttp3.version}</version>
            </dependency>

            <dependency>
                <groupId>com.squareup.okhttp3</groupId>
                <artifactId>logging-interceptor</artifactId>
                <version>${okhttp3.version}</version>
            </dependency>

            <dependency>
                <groupId>org.apache.httpcomponents</groupId>
                <artifactId>httpclient</artifactId>
                <version>${http.client.version}</version>
            </dependency>

            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>${slf4j.version}</version>
            </dependency>

            <dependency>
                <groupId>io.opentracing</groupId>
                <artifactId>opentracing-api</artifactId>
                <version>${opentracing.version}</version>
            </dependency>

            <dependency>
                <groupId>io.opentracing</groupId>
                <artifactId>opentracing-noop</artifactId>
                <version>${opentracing.version}</version>
            </dependency>

            <dependency>
                <groupId>io.opentracing</groupId>
                <artifactId>opentracing-util</artifactId>
                <version>${opentracing.version}</version>
            </dependency>

            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
                <version>${jackson.databind.version}</version>
            </dependency>

            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-core</artifactId>
                <version>${jackson.core.version}</version>
            </dependency>

            <dependency>
                <groupId>org.msgpack</groupId>
                <artifactId>jackson-dataformat-msgpack</artifactId>
                <version>${jackson.msgpack.version}</version>
            </dependency>

            <dependency>
                <groupId>com.github.joschi.jackson</groupId>
                <artifactId>jackson-datatype-threetenbp</artifactId>
                <version>${jackson.threetenbp.version}</version>
            </dependency>

            <dependency>
                <groupId>org.threeten</groupId>
                <artifactId>threetenbp</artifactId>
                <version>${threetenbp.version}</version>
            </dependency>

            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-lang3</artifactId>
                <version>${commons.lang3.version}</version>
            </dependency>

            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>${commons.io.version}</version>
            </dependency>

            <dependency>
                <groupId>commons-net</groupId>
                <artifactId>commons-net</artifactId>
                <version>${commons.net.version}</version>
            </dependency>

            <dependency>
                <groupId>com.moandjiezana.toml</groupId>
                <artifactId>toml4j</artifactId>
                <version>${toml.lib.version}</version>
            </dependency>

            <dependency>
                <groupId>io.grpc</groupId>
                <artifactId>grpc-context</artifactId>
                <version>${grpc.version}</version>
            </dependency>

            <dependency>
                <groupId>org.apache.bcel</groupId>
                <artifactId>bcel</artifactId>
                <version>${bcel.version}</version>
            </dependency>

            <dependency>
                <groupId>org.openjdk.jmh</groupId>
                <artifactId>jmh-core</artifactId>
                <version>${jmh.version}</version>
            </dependency>

            <dependency>
                <groupId>org.openjdk.jmh</groupId>
                <artifactId>jmh-generator-annprocess</artifactId>
                <version>${jmh.version}</version>
            </dependency>

            <!-- Test Dependencies -->
            <dependency>
                <groupId>org.jacoco</groupId>
                <artifactId>org.jacoco.agent</artifactId>
                <version>${jacoco.version}</version>
                <classifier>runtime</classifier>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-rules-testing</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>com.undefinedlabs.scope</groupId>
                <artifactId>scope-runner-testing</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>io.opentracing</groupId>
                <artifactId>opentracing-mock</artifactId>
                <version>${opentracing.version}</version>
            </dependency>

            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>${junit.version}</version>
            </dependency>

            <dependency>
                <groupId>org.junit.jupiter</groupId>
                <artifactId>junit-jupiter-engine</artifactId>
                <version>${junit.jupiter.engine.version}</version>
            </dependency>

            <dependency>
                <groupId>org.junit.jupiter</groupId>
                <artifactId>junit-jupiter-params</artifactId>
                <version>${junit.jupiter.engine.version}</version>
            </dependency>

            <dependency>
                <groupId>org.junit.platform</groupId>
                <artifactId>junit-platform-launcher</artifactId>
                <version>${junit.platform.launcher.version}</version>
            </dependency>

            <dependency>
                <groupId>org.testng</groupId>
                <artifactId>testng</artifactId>
                <version>${testng.version}</version>
            </dependency>

            <dependency>
                <groupId>org.powermock</groupId>
                <artifactId>powermock-module-junit4</artifactId>
                <version>${powermock.junit4.version}</version>
            </dependency>


            <dependency>
                <groupId>org.assertj</groupId>
                <artifactId>assertj-core</artifactId>
                <version>${assertj.core.version}</version>
            </dependency>

            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-all</artifactId>
                <version>${mockito.version}</version>
            </dependency>

            <dependency>
                <groupId>com.squareup.okhttp3</groupId>
                <artifactId>mockwebserver</artifactId>
                <version>${okhttp3.version}</version>
            </dependency>

            <dependency>
                <groupId>net.bytebuddy</groupId>
                <artifactId>byte-buddy-agent</artifactId>
                <version>${bytebuddy.version}</version>
            </dependency>

        </dependencies>
    </dependencyManagement>

    <build>
        <finalName>${project.artifactId}</finalName>

        <plugins>
            <!-- Define release properties. -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>${maven.release.plugin.version}</version>
                <configuration>
                    <useReleaseProfile>false</useReleaseProfile>
                    <releaseProfiles>extras,gpg,nexus</releaseProfiles>
                    <autoVersionSubmodules>true</autoVersionSubmodules>
                    <tagNameFormat>@{project.version}</tagNameFormat>
                    <goals>deploy</goals>
                    <arguments>-Dmaven.test.skip=true</arguments>
                </configuration>
            </plugin>
        </plugins>

        <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
            <plugins>
                <plugin>
                    <groupId>net.alchim31.maven</groupId>
                    <artifactId>scala-maven-plugin</artifactId>
                    <version>${scala.maven.plugin.version}</version>
                    <executions>
                        <execution>
                            <id>scala-compile-first</id>
                            <phase>process-resources</phase>
                            <goals>
                                <goal>add-source</goal>
                                <goal>compile</goal>
                            </goals>
                        </execution>
                        <execution>
                            <id>scala-test-compile</id>
                            <phase>process-test-resources</phase>
                            <goals>
                                <goal>testCompile</goal>
                            </goals>
                        </execution>
                    </executions>
                    <configuration>
                        <scalaVersion>${scala.library.version}</scalaVersion>
                        <recompileMode>all</recompileMode>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-clean-plugin</artifactId>
                    <version>${maven.clean.plugin.version}</version>
                </plugin>
                <plugin>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>${maven.resources.plugin.version}</version>
                </plugin>
                <plugin>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>${maven.compiler.plugin.version}</version>
                    <configuration>
                        <source>${sourcecode.main.version}</source>
                        <target>${scope.main.version}</target>
                        <testSource>${sourcecode.test.version}</testSource>
                        <testTarget>${scope.test.version}</testTarget>
                        <encoding>${project.build.sourceEncoding}</encoding>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>${maven.surefire.plugin.version}</version>
                    <configuration>
                        <skipTests>${skip.tests}</skipTests>
                        <includes>
                            <include>**/*Test.java</include>
                        </includes>
                        <excludes>
                            <exclude>**/*IT.java</exclude>
                        </excludes>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-failsafe-plugin</artifactId>
                    <version>${maven.failsafe.plugin.version}</version>
                    <configuration>
                        <skipITs>${skip.integration.tests}</skipITs>
                        <argLine>-Dscope.tests.running=true</argLine>
                        <includes>
                            <include>**/*IT.java</include>
                        </includes>
                        <excludes>
                            <exclude>**/*Test.java</exclude>
                        </excludes>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>${maven.jar.plugin.version}</version>
                </plugin>
                <plugin>
                    <artifactId>maven-install-plugin</artifactId>
                    <version>${maven.install.plugin.version}</version>
                </plugin>
                <plugin>
                    <artifactId>maven-deploy-plugin</artifactId>
                    <version>${maven.deploy.plugin.version}</version>
                </plugin>
                <plugin>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>${maven.site.plugin.version}</version>
                </plugin>
                <plugin>
                    <artifactId>maven-project-info-reports-plugin</artifactId>
                    <version>${maven.project.info.reports.plugin.version}</version>
                </plugin>
                <plugin>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>${maven.source.plugin.version}</version>
                </plugin>
                <plugin>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>${maven.javadoc.plugin.version}</version>
                </plugin>
                <plugin>
                    <artifactId>maven-gpg-plugin</artifactId>
                    <version>${maven.gpg.plugin.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.sonatype.plugins</groupId>
                    <artifactId>nexus-staging-maven-plugin</artifactId>
                    <version>${nexus.staging.maven.plugin.version}</version>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <distributionManagement>
        <snapshotRepository>
            <id>ossrh</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
        <repository>
            <id>ossrh</id>
            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
        </repository>
    </distributionManagement>

    <profiles>
        <profile>
            <id>performance</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
                <skip.performance.tests>false</skip.performance.tests>
            </properties>
        </profile>

        <profile>
            <id>fasttrack</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
                <skip.tests>true</skip.tests>
                <skip.junit5.tests>true</skip.junit5.tests>
                <skip.akka.http.tests>true</skip.akka.http.tests>
                <skip.integration.tests>true</skip.integration.tests>
                <skip.coverage.java8.tests>true</skip.coverage.java8.tests>
                <skip.performance.tests>true</skip.performance.tests>
            </properties>
        </profile>

        <profile>
            <id>integration</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
                <skip.integration.tests>false</skip.integration.tests>
            </properties>
        </profile>

        <!-- Builds using a byte code target for Java 7. -->
        <profile>
            <id>java7</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
                <scope.main.version>1.7</scope.main.version>
                <scope.test.version>1.7</scope.test.version>
                <assertj.core.version>2.9.1</assertj.core.version>
                <okhttp3.version>3.12.2</okhttp3.version>
                <skip.junit5.tests>true</skip.junit5.tests>
                <skip.akka.http.tests>true</skip.akka.http.tests>
            </properties>
        </profile>
        <!-- Builds using a byte code target for Java 8. -->
        <profile>
            <id>java8</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
                <!--        <sourcecode.main.version>8</sourcecode.main.version>
                        <sourcecode.test.version>8</sourcecode.test.version>
                        <scope.main.version>8</scope.main.version>
                        <scope.test.version>8</scope.test.version>-->
                <okhttp3.version>3.14.1</okhttp3.version>
                <skip.junit5.tests>false</skip.junit5.tests>
                <skip.coverage.java8.tests>false</skip.coverage.java8.tests>
                <skip.akka.http.tests>false</skip.akka.http.tests>
                <scala.maven.plugin.version>4.2.0</scala.maven.plugin.version>
            </properties>
        </profile>

        <!-- Builds using a byte code target for Java 11. -->
        <profile>
            <id>java11</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
                <!--        <sourcecode.main.version>1.8</sourcecode.main.version>
                        <sourcecode.test.version>1.8</sourcecode.test.version>
                        <scope.main.version>1.8</scope.main.version>
                        <scope.test.version>1.8</scope.test.version>-->
                <okhttp3.version>3.14.1</okhttp3.version>
                <skip.junit5.tests>false</skip.junit5.tests>
                <skip.akka.http.tests>false</skip.akka.http.tests>
                <scala.maven.plugin.version>4.2.0</scala.maven.plugin.version>
                <scalatest.version>3.0.8</scalatest.version>
                <scala.version>2.12</scala.version>
                <scala.library.version>2.12.10</scala.library.version>
                <akka.version>2.4.20</akka.version>
                <akka.http.stream.version>2.4.20</akka.http.stream.version>
                <akka.http.version>10.0.15</akka.http.version>
                <http.client.version>4.5.10</http.client.version>
                <skip.junit5.tests>false</skip.junit5.tests>
                <skip.coverage.java8.tests>false</skip.coverage.java8.tests>
                <skip.akka.http.tests>false</skip.akka.http.tests>
                <scala.maven.plugin.version>4.2.0</scala.maven.plugin.version>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>javax.annotation</groupId>
                    <artifactId>javax.annotation-api</artifactId>
                    <version>1.3.2</version>
                    <scope>provided</scope>
                </dependency>
            </dependencies>
        </profile>

        <profile>
            <id>nexus</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.sonatype.plugins</groupId>
                        <artifactId>nexus-staging-maven-plugin</artifactId>
                        <extensions>true</extensions>
                        <configuration>
                            <serverId>ossrh</serverId>
                            <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                            <autoReleaseAfterClose>true</autoReleaseAfterClose>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>extras</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-javadoc</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <detectJavaApiLink>true</detectJavaApiLink>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>gpg</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <!-- Sign artifacts. -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <executions>
                            <execution>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <gpgArguments>
                                <arg>--pinentry-mode</arg>
                                <arg>loopback</arg>
                            </gpgArguments>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>jacoco</id>
            <build>
                <pluginManagement>
                    <plugins>
                        <plugin>
                            <groupId>org.jacoco</groupId>
                            <artifactId>jacoco-maven-plugin</artifactId>
                            <version>0.8.5</version>
                            <configuration>
                                <excludes>
                                    <exclude>**/*Advice.*</exclude>
                                </excludes>
                            </configuration>
                        </plugin>
                    </plugins>
                </pluginManagement>

                <plugins>
                    <plugin>
                        <groupId>org.jacoco</groupId>
                        <artifactId>jacoco-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>prepare-agent</id>
                                <goals>
                                    <goal>prepare-agent</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>checkstyle</id>
            <reporting>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-checkstyle-plugin</artifactId>
                        <version>3.1.0</version>
                        <configuration>
                            <configLocation>${project.basedir}/checkstyle.xml</configLocation>
                            <excludes>**/deps/**/*.java,**/proto/**/*.java,**/coverage/targets/**/*.java</excludes>
                            <suppressionsLocation>${project.basedir}/checkstyle-suppressions.xml</suppressionsLocation>
                        </configuration>
                        <reportSets>
                            <reportSet>
                                <reports>
                                    <report>checkstyle-aggregate</report>
                                </reports>
                            </reportSet>
                        </reportSets>
                    </plugin>
                </plugins>
            </reporting>
        </profile>
        <profile>
            <id>pmd</id>
            <reporting>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-pmd-plugin</artifactId>
                        <version>3.13.0</version>
                        <configuration>
                            <linkXRef>false</linkXRef>
                            <sourceEncoding>utf-8</sourceEncoding>
                            <minimumTokens>100</minimumTokens>
                            <targetJdk>1.7</targetJdk>
                            <rulesets>
                                <ruleset>${user.dir}/pmd-ruleset.xml</ruleset>
                            </rulesets>
                            <excludes>
                                <exclude>**/deps/**/*.java</exclude>
                                <exclude>**/proto/**/*.java</exclude>
                            </excludes>
                        </configuration>
                    </plugin>
                </plugins>
            </reporting>
        </profile>
        <profile>
            <id>spotbugs</id>
            <reporting>
                <plugins>
                    <plugin>
                        <groupId>com.github.spotbugs</groupId>
                        <artifactId>spotbugs-maven-plugin</artifactId>
                        <version>4.0.0</version>
                        <configuration>
                            <excludeFilterFile>${user.dir}/spotbugs-excludefilter.xml</excludeFilterFile>
                        </configuration>
                    </plugin>
                </plugins>
            </reporting>
        </profile>
    </profiles>

</project>