<?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>

    <parent>
        <groupId>com.atlassian.pom</groupId>
        <artifactId>closedsource-private-pom</artifactId>
        <version>6.3.6</version>
    </parent>

    <groupId>com.atlassian.bitbucket.mesh</groupId>
    <artifactId>mesh-parent</artifactId>
    <version>3.4.4</version>
    <packaging>pom</packaging>

    <name>Bitbucket Mesh - Parent</name>

    <modules>
        <module>api</module>
        <module>app</module>
        <module>common</module>
        <module>core</module>
        <module>dao</module>
        <module>grpc</module>
        <module>rpc</module>
        <module>rpc-fast</module>
        <module>shared</module>
        <module>test</module>
    </modules>

    <scm>
        <connection>scm:git:ssh://git@stash.dev.internal.atlassian.com:7999/STASH/mesh.git</connection>
        <developerConnection>scm:git:ssh://git@stash.dev.internal.atlassian.com:7999/STASH/mesh.git
        </developerConnection>
        <url>https://stash.dev.internal.atlassian.com/projects/STASH/repos/mesh</url>
        <tag>mesh-parent-3.4.4</tag>
    </scm>

    <properties>
        <maven.compiler.release>17</maven.compiler.release>

        <atl.content-cache.libversion>4.4.1</atl.content-cache.libversion>
        <atl.fugue.libversion>4.7.2</atl.fugue.libversion>
        <atl.profiling.libversion>3.4.3</atl.profiling.libversion>

        <aspectj.libversion>1.9.8</aspectj.libversion>
        <bouncycastle.libversion>2.73.3</bouncycastle.libversion>
        <bytebuddy.libversion>1.14.19</bytebuddy.libversion>
        <commons.codec.libversion>1.15</commons.codec.libversion>
        <commons.compress.libversion>1.26.1</commons.compress.libversion>
        <commons.io.libversion>2.14.0</commons.io.libversion>
        <commons.lang3.libversion>3.12.0</commons.lang3.libversion>
        <dbunit.libversion>2.7.2</dbunit.libversion>
        <grpc.libversion>1.70.0</grpc.libversion>
        <guava.libversion>32.1.1-jre</guava.libversion>
        <h2.libversion>2.2.220</h2.libversion>
        <hamcrest.libversion>2.2</hamcrest.libversion>
        <!-- HikariCP 5+ requires Java 11 minimum, so we cannot upgrade to it until we no longer support Java 8 -->
        <hikaricp.libversion>4.0.3</hikaricp.libversion>
        <jackson.libversion>2.15.3</jackson.libversion>
        <janino.libversion>3.1.6</janino.libversion>
        <javax.annotation.libversion>1.3.2</javax.annotation.libversion>
        <javax.servlet.libversion>3.1.0</javax.servlet.libversion>
        <javax.validation.libversion>2.0.1.Final</javax.validation.libversion>
        <jmh.libversion>1.34</jmh.libversion>
        <jjwt.libversion>0.11.2</jjwt.libversion>
        <jsr305.libversion>3.0.2</jsr305.libversion>
        <junit.libversion>4.13.2</junit.libversion>
        <juniversalchardet.libversion>2.4.0</juniversalchardet.libversion>
        <liquibase.libversion>4.8.0</liquibase.libversion>
        <liquibase-slf4j.libversion>4.0.0</liquibase-slf4j.libversion>
        <log4j.libversion>2.17.2</log4j.libversion>
        <logback.libversion>1.3.15</logback.libversion>
        <logstash-encoder.libversion>7.0.1</logstash-encoder.libversion>
        <micrometer.libversion>1.14.5</micrometer.libversion>
        <mockito.libversion>5.13.0</mockito.libversion>
        <!-- netty-tcnative often needs to be updated when netty is updated -->
        <netty.libversion>4.1.118.Final</netty.libversion>
        <netty-tcnative.libversion>2.0.70.Final</netty-tcnative.libversion>
        <nuprocess.libversion>2.0.6</nuprocess.libversion>
        <openclover.libversion>4.5.2</openclover.libversion>
        <org.snakeyaml.version>2.0</org.snakeyaml.version>
        <!-- When upgrading protobuf version also update the version clients such as Stash to try to keep in sync-->
        <protobuf.libversion>3.25.5</protobuf.libversion>
        <slf4j.libversion>2.0.9</slf4j.libversion>
        <spring.boot.libversion>2.7.18</spring.boot.libversion>
        <spring.framework.libversion>5.3.39-atlassian-4</spring.framework.libversion>
        <sshd.libversion>2.9.1</sshd.libversion>
        <truezip.libversion>7.7.9</truezip.libversion>
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.atlassian.bitbucket.mesh</groupId>
                <artifactId>mesh-api</artifactId>
                <version>3.4.4</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bitbucket.mesh</groupId>
                <artifactId>mesh-app</artifactId>
                <version>3.4.4</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bitbucket.mesh</groupId>
                <artifactId>mesh-common</artifactId>
                <version>3.4.4</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bitbucket.mesh</groupId>
                <artifactId>mesh-core</artifactId>
                <version>3.4.4</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bitbucket.mesh</groupId>
                <artifactId>mesh-dao-api</artifactId>
                <version>3.4.4</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bitbucket.mesh</groupId>
                <artifactId>mesh-dao-impl</artifactId>
                <version>3.4.4</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bitbucket.mesh</groupId>
                <artifactId>mesh-grpc</artifactId>
                <version>3.4.4</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bitbucket.mesh</groupId>
                <artifactId>mesh-rpc</artifactId>
                <version>3.4.4</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bitbucket.mesh</groupId>
                <artifactId>mesh-rpc-fast</artifactId>
                <version>3.4.4</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bitbucket.mesh</groupId>
                <artifactId>mesh-shared-common</artifactId>
                <version>3.4.4</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bitbucket.mesh</groupId>
                <artifactId>mesh-shared-core</artifactId>
                <version>3.4.4</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bitbucket.mesh</groupId>
                <artifactId>mesh-distribution-licenses</artifactId>
                <version>3.4.4</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bitbucket.mesh</groupId>
                <artifactId>mesh-test-cluster</artifactId>
                <version>3.4.4</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bitbucket.mesh</groupId>
                <artifactId>mesh-test-common</artifactId>
                <version>3.4.4</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bitbucket.mesh</groupId>
                <artifactId>mesh-test-util</artifactId>
                <version>3.4.4</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bitbucket.server</groupId>
                <artifactId>bitbucket-logback-logging-system</artifactId>
                <version>1.0.0-java-8</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bitbucket.server</groupId>
                <artifactId>bitbucket-mesh-callback</artifactId>
                <version>1.1.0</version>
            </dependency>

            <!-- Zipped git repositories used for testing -->
            <dependency>
                <groupId>com.atlassian.bitbucket.server.git</groupId>
                <artifactId>gpg-hosting</artifactId>
                <version>1.2</version>
                <type>zip</type>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bitbucket.server.git</groupId>
                <artifactId>gpg-sanity</artifactId>
                <version>1.0</version>
                <type>zip</type>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bitbucket.server.git</groupId>
                <artifactId>ref-sanity</artifactId>
                <version>1.6</version>
                <type>zip</type>
            </dependency>
            <dependency>
                <groupId>com.atlassian.stash.git</groupId>
                <artifactId>binary-files-repository</artifactId>
                <version>1.0</version>
                <type>zip</type>
            </dependency>
            <dependency>
                <groupId>com.atlassian.stash.git</groupId>
                <artifactId>comment-drift</artifactId>
                <version>0.8</version>
                <type>zip</type>
            </dependency>
            <dependency>
                <groupId>com.atlassian.stash.git</groupId>
                <artifactId>default-repository</artifactId>
                <version>1.1</version>
                <type>zip</type>
            </dependency>
            <dependency>
                <groupId>com.atlassian.stash.git</groupId>
                <artifactId>diff-tree</artifactId>
                <version>1.1</version>
                <type>zip</type>
            </dependency>
            <dependency>
                <groupId>com.atlassian.stash.git</groupId>
                <artifactId>garbage</artifactId>
                <version>1.1</version>
                <type>zip</type>
            </dependency>
            <dependency>
                <groupId>com.atlassian.stash.git</groupId>
                <artifactId>jira-integration</artifactId>
                <version>1.1</version>
                <type>zip</type>
            </dependency>
            <dependency>
                <groupId>com.atlassian.stash.git</groupId>
                <artifactId>mailmap</artifactId>
                <version>1.0</version>
                <type>zip</type>
            </dependency>
            <dependency>
                <groupId>com.atlassian.stash.git</groupId>
                <artifactId>merge</artifactId>
                <version>2.12</version>
                <type>zip</type>
            </dependency>
            <dependency>
                <groupId>com.atlassian.stash.git</groupId>
                <artifactId>merge-commits</artifactId>
                <version>1.0</version>
                <type>zip</type>
            </dependency>
            <dependency>
                <groupId>com.atlassian.stash.git</groupId>
                <artifactId>pull-requests</artifactId>
                <version>1.6</version>
                <type>zip</type>
            </dependency>
            <dependency>
                <groupId>com.atlassian.stash.git</groupId>
                <artifactId>qa-resources</artifactId>
                <version>1.10.1</version>
                <type>zip</type>
            </dependency>
            <dependency>
                <groupId>com.atlassian.stash.git</groupId>
                <artifactId>subrepositories</artifactId>
                <version>1.0</version>
                <type>zip</type>
            </dependency>
            <dependency>
                <groupId>com.atlassian.stash.git</groupId>
                <artifactId>suggestion-drift</artifactId>
                <version>1.2</version>
                <type>zip</type>
            </dependency>

            <!-- Atlassian shared libraries -->
            <dependency>
                <groupId>com.atlassian.profiling</groupId>
                <artifactId>atlassian-profiling</artifactId>
                <version>${atl.profiling.libversion}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.util</groupId>
                <artifactId>content-cache</artifactId>
                <version>${atl.content-cache.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.atlassian.fugue</groupId>
                <artifactId>fugue</artifactId>
                <version>${atl.fugue.libversion}</version>
            </dependency>

            <!-- Third-party libraries -->
            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-classic</artifactId>
                <version>${logback.libversion}</version>
            </dependency>
            <dependency>
                <groupId>commons-codec</groupId>
                <artifactId>commons-codec</artifactId>
                <version>${commons.codec.libversion}</version>
            </dependency>
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>${commons.io.libversion}</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-annotations</artifactId>
                <version>${jackson.libversion}</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-core</artifactId>
                <version>${jackson.libversion}</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
                <version>${jackson.libversion}</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.datatype</groupId>
                <artifactId>jackson-datatype-jsr310</artifactId>
                <version>${jackson.libversion}</version>
            </dependency>
            <dependency>
                <groupId>com.github.albfernandez</groupId>
                <artifactId>juniversalchardet</artifactId>
                <version>${juniversalchardet.libversion}</version>
            </dependency>
            <dependency>
                <groupId>com.google.code.findbugs</groupId>
                <artifactId>jsr305</artifactId>
                <version>${jsr305.libversion}</version>
            </dependency>
            <dependency>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
                <version>${guava.libversion}</version>
            </dependency>
            <dependency>
                <groupId>com.google.protobuf</groupId>
                <artifactId>protobuf-java</artifactId>
                <version>${protobuf.libversion}</version>
            </dependency>
            <dependency>
                <groupId>com.google.protobuf</groupId>
                <artifactId>protobuf-javalite</artifactId>
                <version>${protobuf.libversion}</version>
            </dependency>
            <dependency>
                <groupId>com.h2database</groupId>
                <artifactId>h2</artifactId>
                <version>${h2.libversion}</version>
            </dependency>
            <!-- Liquibase's SLF4J code was removed in 4.0, so we need this extra library to route its
                 logging to SLF4J rather than JUL. -->
            <dependency>
                <groupId>com.mattbertolini</groupId>
                <artifactId>liquibase-slf4j</artifactId>
                <version>${liquibase-slf4j.libversion}</version>
            </dependency>
            <dependency>
                <groupId>com.zaxxer</groupId>
                <artifactId>HikariCP</artifactId>
                <version>${hikaricp.libversion}</version>
            </dependency>
            <dependency>
                <groupId>com.zaxxer</groupId>
                <artifactId>nuprocess</artifactId>
                <version>${nuprocess.libversion}</version>
            </dependency>
            <dependency>
                <groupId>de.schlichtherle.truezip</groupId>
                <artifactId>truezip-file</artifactId>
                <version>${truezip.libversion}</version>
            </dependency>
            <dependency>
                <groupId>de.schlichtherle.truezip</groupId>
                <artifactId>truezip-driver-zip</artifactId>
                <version>${truezip.libversion}</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.bouncycastle</groupId>
                        <artifactId>bcprov-jdk15on</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>de.schlichtherle.truezip</groupId>
                <artifactId>truezip-driver-tar</artifactId>
                <version>${truezip.libversion}</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.bouncycastle</groupId>
                        <artifactId>bcprov-jdk15on</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>javax.annotation</groupId>
                <artifactId>javax.annotation-api</artifactId>
                <version>${javax.annotation.libversion}</version>
            </dependency>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>javax.servlet-api</artifactId>
                <version>${javax.servlet.libversion}</version>
            </dependency>
            <dependency>
                <groupId>javax.validation</groupId>
                <artifactId>validation-api</artifactId>
                <version>${javax.validation.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.grpc</groupId>
                <artifactId>grpc-api</artifactId>
                <version>${grpc.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.grpc</groupId>
                <artifactId>grpc-context</artifactId>
                <version>${grpc.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.grpc</groupId>
                <artifactId>grpc-core</artifactId>
                <version>${grpc.libversion}</version>
                <exclusions>
                    <exclusion>
                        <groupId>com.google.android</groupId>
                        <artifactId>annotations</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>io.grpc</groupId>
                <artifactId>grpc-netty</artifactId>
                <version>${grpc.libversion}</version>
                <exclusions>
                    <!-- For phase 2, since the agent will be colocated, we shouldn't need proxy support. This
                         can be reconsidered during phase 3, if necessary, or deferred until even later. -->
                    <exclusion>
                        <groupId>io.netty</groupId>
                        <artifactId>netty-handler-proxy</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>io.grpc</groupId>
                <artifactId>grpc-protobuf</artifactId>
                <version>${grpc.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.grpc</groupId>
                <artifactId>grpc-protobuf-lite</artifactId>
                <version>${grpc.libversion}</version>
                <exclusions>
                    <exclusion>
                        <groupId>com.google.protobuf</groupId>
                        <artifactId>protobuf-javalite</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>io.grpc</groupId>
                <artifactId>grpc-stub</artifactId>
                <version>${grpc.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.grpc</groupId>
                <artifactId>grpc-testing</artifactId>
                <version>${grpc.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.jsonwebtoken</groupId>
                <artifactId>jjwt-api</artifactId>
                <version>${jjwt.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.jsonwebtoken</groupId>
                <artifactId>jjwt-impl</artifactId>
                <version>${jjwt.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.jsonwebtoken</groupId>
                <artifactId>jjwt-jackson</artifactId>
                <version>${jjwt.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.micrometer</groupId>
                <artifactId>micrometer-core</artifactId>
                <version>${micrometer.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.micrometer</groupId>
                <artifactId>micrometer-registry-datadog</artifactId>
                <version>${micrometer.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.micrometer</groupId>
                <artifactId>micrometer-registry-dynatrace</artifactId>
                <version>${micrometer.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.micrometer</groupId>
                <artifactId>micrometer-registry-influx</artifactId>
                <version>${micrometer.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.micrometer</groupId>
                <artifactId>micrometer-registry-jmx</artifactId>
                <version>${micrometer.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.micrometer</groupId>
                <artifactId>micrometer-registry-new-relic</artifactId>
                <version>${micrometer.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.micrometer</groupId>
                <artifactId>micrometer-registry-signalfx</artifactId>
                <version>${micrometer.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.micrometer</groupId>
                <artifactId>micrometer-registry-statsd</artifactId>
                <version>${micrometer.libversion}</version>
            </dependency>
            <!-- The following allow control over the Netty version in use, rather than using whatever version
                 grpc-netty happens to depend on in a given release. -->
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-buffer</artifactId>
                <version>${netty.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-codec</artifactId>
                <version>${netty.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-codec-http</artifactId>
                <version>${netty.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-codec-http2</artifactId>
                <version>${netty.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-codec-socks</artifactId>
                <version>${netty.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-common</artifactId>
                <version>${netty.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-handler</artifactId>
                <version>${netty.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-handler-proxy</artifactId>
                <version>${netty.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-resolver</artifactId>
                <version>${netty.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-tcnative-classes</artifactId>
                <version>${netty-tcnative.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-tcnative-boringssl-static</artifactId>
                <version>${netty-tcnative.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-transport</artifactId>
                <version>${netty.libversion}</version>
            </dependency>
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-transport-native-epoll</artifactId>
                <version>${netty.libversion}</version>
                <classifier>linux-x86_64</classifier>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>${junit.libversion}</version>
                <exclusions>
                    <!-- Removes the Hamcrest 1x dependency; we're using Hamcrest 2 in Mesh -->
                    <exclusion>
                        <groupId>org.hamcrest</groupId>
                        <artifactId>hamcrest-core</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>net.bytebuddy</groupId>
                <artifactId>byte-buddy</artifactId>
                <version>${bytebuddy.libversion}</version>
            </dependency>
            <dependency>
                <groupId>net.bytebuddy</groupId>
                <artifactId>byte-buddy-agent</artifactId>
                <version>${bytebuddy.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-compress</artifactId>
                <version>${commons.compress.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-lang3</artifactId>
                <version>${commons.lang3.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.logging.log4j</groupId>
                <artifactId>log4j-api</artifactId>
                <version>${log4j.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.logging.log4j</groupId>
                <artifactId>log4j-to-slf4j</artifactId>
                <version>${log4j.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.sshd</groupId>
                <artifactId>sshd-core</artifactId>
                <version>${sshd.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.aspectj</groupId>
                <artifactId>aspectjrt</artifactId>
                <version>${aspectj.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.aspectj</groupId>
                <artifactId>aspectjweaver</artifactId>
                <version>${aspectj.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.bouncycastle</groupId>
                <artifactId>bcpg-lts8on</artifactId>
                <version>${bouncycastle.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.bouncycastle</groupId>
                <artifactId>bcpkix-lts8on</artifactId>
                <version>${bouncycastle.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.bouncycastle</groupId>
                <artifactId>bcprov-lts8on</artifactId>
                <version>${bouncycastle.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.bouncycastle</groupId>
                <artifactId>bcutil-lts8on</artifactId>
                <version>${bouncycastle.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.codehaus.janino</groupId>
                <artifactId>janino</artifactId>
                <version>${janino.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.dbunit</groupId>
                <artifactId>dbunit</artifactId>
                <version>${dbunit.libversion}</version>
                <exclusions>
                    <exclusion>
                        <groupId>com.oracle.database.jdbc</groupId>
                        <artifactId>ojdbc8</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.postgresql</groupId>
                        <artifactId>postgresql</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.hamcrest</groupId>
                <artifactId>hamcrest</artifactId>
                <version>${hamcrest.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.liquibase</groupId>
                <artifactId>liquibase-core</artifactId>
                <version>${liquibase.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-core</artifactId>
                <version>${mockito.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.openjdk.jmh</groupId>
                <artifactId>jmh-core</artifactId>
                <version>${jmh.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>${slf4j.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-simple</artifactId>
                <version>${slf4j.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>jcl-over-slf4j</artifactId>
                <version>${slf4j.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>jul-to-slf4j</artifactId>
                <version>${slf4j.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>log4j-over-slf4j</artifactId>
                <version>${slf4j.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-aop</artifactId>
                <version>${spring.framework.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-beans</artifactId>
                <version>${spring.framework.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-context</artifactId>
                <version>${spring.framework.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-context-support</artifactId>
                <version>${spring.framework.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-core</artifactId>
                <version>${spring.framework.libversion}</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-jcl</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-expression</artifactId>
                <version>${spring.framework.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-jdbc</artifactId>
                <version>${spring.framework.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-tx</artifactId>
                <version>${spring.framework.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-test</artifactId>
                <version>${spring.framework.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot</artifactId>
                <version>${spring.boot.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-actuator</artifactId>
                <version>${spring.boot.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-actuator-autoconfigure</artifactId>
                <version>${spring.boot.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-autoconfigure</artifactId>
                <version>${spring.boot.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-loader</artifactId>
                <version>${spring.boot.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-actuator</artifactId>
                <version>${spring.boot.libversion}</version>
                <exclusions>
                    <exclusion>
                        <groupId>jakarta.annotation</groupId>
                        <artifactId>jakarta.annotation-api</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-json</artifactId>
                <version>${spring.boot.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-logging</artifactId>
                <version>${spring.boot.libversion}</version>
            </dependency>
            <dependency>
                <groupId>org.yaml</groupId>
                <artifactId>snakeyaml</artifactId>
                <version>${org.snakeyaml.version}</version>
            </dependency>

            <!-- Third party Cloud Only dependencies-->
            <dependency>
                <groupId>net.logstash.logback</groupId>
                <artifactId>logstash-logback-encoder</artifactId>
                <version>${logstash-encoder.libversion}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>license-maven-plugin</artifactId>
                    <version>1.0.0</version>
                    <configuration>
                        <nonMavenDependenciesFile>third-party-licensing/missing-non-maven-dependencies.properties</nonMavenDependenciesFile>
                        <licenseRepositoryUrl>ssh://git@stash.atlassian.com:7997/cp/atlassian-licenses.git</licenseRepositoryUrl>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>product-deployment-maven-plugin</artifactId>
                    <version>7.1.3</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <version>3.6.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-clean-plugin</artifactId>
                    <version>3.2.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.13.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-enforcer-plugin</artifactId>
                    <version>3.3.0</version>
                    <executions>
                        <execution>
                            <id>ban-undesired-dependencies</id>
                            <goals>
                                <goal>enforce</goal>
                            </goals>
                            <phase>validate</phase>
                            <configuration>
                                <rules>
                                    <requireJavaVersion>
                                        <version>${maven.compiler.release}</version>
                                    </requireJavaVersion>
                                    <bannedDependencies>
                                        <excludes>
                                            <exclude>commons-logging:commons-logging:*</exclude>
                                            <exclude>log4j:log4j:*</exclude>
                                            <exclude>org.apache.logging.log4j:log4j-core:*</exclude>
                                            <exclude>org.hamcrest:hamcrest-core:*</exclude>
                                            <exclude>org.hamcrest:hamcrest-library:*</exclude>
                                            <!-- Use Bouncy Castle lts8on artifacts -->
                                            <exclude>org.bouncycastle:bcpg-*:*</exclude>
                                            <exclude>org.bouncycastle:bcpkix-*:*</exclude>
                                            <exclude>org.bouncycastle:bcprov-*:*</exclude>
                                            <exclude>org.bouncycastle:bcutil-*:*</exclude>
                                        </excludes>
                                        <includes>
                                            <include>org.bouncycastle:bcpg-lts8on:*</include>
                                            <include>org.bouncycastle:bcpkix-lts8on:*</include>
                                            <include>org.bouncycastle:bcprov-lts8on:*</include>
                                            <include>org.bouncycastle:bcutil-lts8on:*</include>
                                        </includes>
                                        <message>
                                            One or more banned dependencies have been introduced. Check your
                                            transitive dependencies with mvn dependency:tree.
                                        </message>
                                        <searchTransitive>true</searchTransitive>
                                    </bannedDependencies>
                                </rules>
                                <fail>true</fail>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-install-plugin</artifactId>
                    <version>3.0.1</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>3.2.2</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>3.3.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>2.5.3</version>
                    <configuration>
                        <!-- The atlassian default pom provides some defaults that are unhelpful to our release process
                             Some are semi-useful, so we will add them back in in our own process (like including the
                             release profile).
                             So here we replace them with ones we control (see the 'release-*' profiles below -->
                        <arguments>${arguments}</arguments>
                        <useReleaseProfile>${useReleaseProfile}</useReleaseProfile>
                        <!-- This is the default from the parent poms, but we'll set it here in case they change it -->
                        <preparationGoals>clean install</preparationGoals>
                        <!-- http://jira.codehaus.org/browse/MRELEASE-459 releaseProfiles doesn't work.
                             Make sure you pass the appropriate -P flags on the command line (see the 'release-*'
                             profiles below for details).
                             This setting is _not_ used in the release process any more and is really only here for
                             documentation purposes at this point. -->
                        <releaseProfiles>release,full,bom,source</releaseProfiles>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.22.2</version>
                    <configuration>
                        <!--argLine>${surefire.argLine}</argLine>
                        <excludedGroups>${surefire.excludedGroups}</excludedGroups-->
                        <trimStackTrace>false</trimStackTrace>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>buildnumber-maven-plugin</artifactId>
                    <version>3.0.0</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>build-helper-maven-plugin</artifactId>
                    <version>3.2.0</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>tidy-maven-plugin</artifactId>
                    <version>1.1.0</version>
                </plugin>
                <plugin>
                    <groupId>org.openclover</groupId>
                    <artifactId>clover-maven-plugin</artifactId>
                    <version>${openclover.libversion}</version>
                    <configuration>
                        <reportDescriptor>${mesh.clover.report.path}</reportDescriptor>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-maven-plugin</artifactId>
                    <version>${spring.boot.libversion}</version>
                </plugin>
                <plugin>
                    <groupId>org.xolstice.maven.plugins</groupId>
                    <artifactId>protobuf-maven-plugin</artifactId>
                    <version>0.6.1</version>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>3.1.2</version>
                <configuration>
                    <configLocation>checkstyle.xml</configLocation>
                    <encoding>UTF-8</encoding>
                    <includeTestSourceDirectory>true</includeTestSourceDirectory>
                    <consoleOutput>true</consoleOutput>
                </configuration>
                <dependencies>
                    <!-- If you update versions for Checkstyle or either of the custom check jars, you need to
                         make matching changes in etc/git-hooks/pre-commit -->
                    <dependency>
                        <groupId>com.puppycrawl.tools</groupId>
                        <artifactId>checkstyle</artifactId>
                        <version>8.42</version>
                    </dependency>
                    <dependency>
                        <groupId>com.atlassian.bitbucket.server</groupId>
                        <artifactId>bitbucket-checkstyle</artifactId>
                        <version>3.0.0</version>
                        <exclusions>
                            <exclusion>
                                <groupId>checkstyle</groupId>
                                <artifactId>checkstyle</artifactId>
                            </exclusion>
                        </exclusions>
                    </dependency>
                    <dependency>
                        <groupId>com.atlassian</groupId>
                        <artifactId>checkstyle-custom-checks</artifactId>
                        <version>2.0.0</version>
                        <exclusions>
                            <exclusion>
                                <groupId>checkstyle</groupId>
                                <artifactId>checkstyle</artifactId>
                            </exclusion>
                        </exclusions>
                    </dependency>
                </dependencies>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <!-- Disable the "hammer" rule. In a perfect world we'd never build releases using
                             milestone or release candidate dependencies, but in the real world sometimes
                             we need to. -->
                        <id>ban-milestones-and-release-candidates</id>
                        <phase>none</phase>
                    </execution>
                </executions>
            </plugin>
            <!-- This needs to be in both pluginManagement and plugins to fully override base-pom's version. -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>3.3.0</version>
                <executions>
                    <execution>
                        <!-- Since we have no license files to copy, we disable the copy-license execution
                             inherited from base-pom. For more details, see:
                             https://go.atlassian.com/j/BUILDENG-13628 -->
                        <id>copy-license</id>
                        <phase>none</phase>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>full</id>
            <modules>
                <module>distribution</module>
                <module>it</module>
            </modules>
        </profile>
        <profile>
            <id>it</id>
            <modules>
                <module>it</module>
            </modules>
        </profile>
        <profile>
            <id>release</id>
            <properties>
                <maven.javadoc.skip>true</maven.javadoc.skip>
            </properties>
        </profile>
    </profiles>
</project>
