<?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>public-pom</artifactId>
        <version>6.0.2</version>
        <relativePath />
    </parent>

    <groupId>com.atlassian.plugins</groupId>
    <artifactId>atlassian-plugins-osgi-testrunner-parent</artifactId>
    <version>2.0.4</version>
    <packaging>pom</packaging>

    <name>Atlassian Plugins OSGi TestRunner Parent POM</name>

    <modules>
        <module>atlassian-plugins-osgi-testrunner</module>
        <module>atlassian-plugins-osgi-testrunner-bundle</module>
        <module>atlassian-osgi-testrunner-test-plugin</module>
    </modules>

    <scm>
        <connection>scm:git:git@bitbucket.org:atlassian/atlassian-plugins-osgi-testrunner-parent.git</connection>
        <developerConnection>scm:git:git@bitbucket.org:atlassian/atlassian-plugins-osgi-testrunner-parent.git</developerConnection>
        <url>https://bitbucket.org/atlassian/atlassian-plugins-osgi-testrunner-parent</url>
        <tag>atlassian-plugins-osgi-testrunner-parent-2.0.4</tag>
    </scm>
    <issueManagement>
        <system>Jira</system>
        <url>https://ecosystem.atlassian.net/browse/PTRUNNER</url>
    </issueManagement>
    <ciManagement>
        <system>Bamboo</system>
        <url>https://ecosystem-bamboo.internal.atlassian.com/browse/PTRUNNER</url>
    </ciManagement>

    <properties>
        <atlassian.upm.version>2.15</atlassian.upm.version>
        <felix.version>7.0.5</felix.version>
        <gson.version>2.10.1</gson.version>
        <junit.bundle.version>1-atlassian-7</junit.bundle.version>
        <junit.version>4.12</junit.version>
        <junit3.version>3.8.2</junit3.version>
        <osgi.manifest.version>1.0.0</osgi.manifest.version>
        <jvm.opens />
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.apache.servicemix.bundles</groupId>
                <artifactId>org.apache.servicemix.bundles.junit</artifactId>
                <version>${junit.version}_${junit.bundle.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.wink</groupId>
                <artifactId>wink-client</artifactId>
                <version>1.1.3-incubating</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-api</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>2.9.0</version>
            </dependency>
            <dependency>
                <groupId>com.google.code.gson</groupId>
                <artifactId>gson</artifactId>
                <version>${gson.version}</version>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-core</artifactId>
                <version>1.10.8</version>
            </dependency>
            <dependency>
                <groupId>org.hamcrest</groupId>
                <artifactId>hamcrest-all</artifactId>
                <version>1.3</version>
            </dependency>
            <dependency>
                <groupId>com.ibm.icu</groupId>
                <artifactId>icu4j</artifactId>
                <version>69.1</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <profiles>
        <profile>
            <id>jvm.opens.activation</id>
            <activation>
                <jdk>[17,)</jdk>
            </activation>
            <properties>
                <jvm.opens>--add-opens=java.base/java.lang=ALL-UNNAMED</jvm.opens>
            </properties>
        </profile>
    </profiles>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>amps-maven-plugin</artifactId>
                    <version>8.11.4</version>
                    <extensions>true</extensions>
                    <configuration>
                        <enablePde>false</enablePde>
                        <enableQuickReload>true</enableQuickReload>
                        <product>refapp</product>
                        <productVersion>6.1.8</productVersion>
                        <server>localhost</server>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <configuration>
                        <argLine>${jvm.opens}</argLine>
                        <!-- Prevents JUnit 3 being used, which ignores @Test methods -->
                        <junitArtifactName>org.apache.servicemix.bundles:org.apache.servicemix.bundles.junit</junitArtifactName>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
</project>
