<?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-pom</artifactId>
        <version>6.0.7</version>
    </parent>

    <groupId>com.atlassian.confluence.extra.team-calendars</groupId>
    <artifactId>team-calendars-project</artifactId>
    <!--  7.0.0 need to be skipped  -->
    <version>7.0.11</version>
    <packaging>pom</packaging>

    <name>Team Calendars Project</name>
    <description>Team Calendars Plugin Project.</description>
    <url>http://www.atlassian.com/office</url>
    <licenses>
        <license>
            <name>Atlassian 3.0 End User License Agreement</name>
            <url>https://www.atlassian.com/legal/software-license-agreement</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <modules>
        <module>api</module>
        <module>team-calendars</module>
        <module>webdriver-tests</module>
        <module>teamcal-stateless-webdriver-tests</module>
        <module>team-calendars-integration-tests</module>
    </modules>

    <scm>
        <connection>scm:git:https://stash.atlassian.com/scm/CONFSERVER/teamcal.git</connection>
        <developerConnection>scm:git:https://stash.atlassian.com/scm/CONFSERVER/teamcal.git</developerConnection>
        <url>https://stash.atlassian.com/scm/CONFSERVER/teamcal.git</url>
        <tag>team-calendars-project-7.0.11</tag>
    </scm>
    <ciManagement>
        <system>Bamboo</system>
        <url>https://server-syd-bamboo.internal.atlassian.com/browse/TEAMCAL-MAINM</url>
    </ciManagement>

    <properties>
        <amps8.version>8.2.1</amps8.version>
        <!-- Note that teamcal is supposed to work with all supported Confluence releases. See README.md for details. -->
        <confluence.version>7.11.0-m32</confluence.version>
        <confluence.pageobjects.version>5.10.4</confluence.pageobjects.version>
        <confluence.product.version>${confluence.version}</confluence.product.version>
        <confluence.product.data.version>${confluence.product.version}</confluence.product.data.version>

        <jira.version>8.3.1</jira.version>
        <testkit.version>8.1.9</testkit.version>
        <jira.containerId>tomcat9x</jira.containerId>

        <confluence.stateless.test.runner.version>7.2.0</confluence.stateless.test.runner.version>
        <guava.version>19.0</guava.version>
        <selenium.version>2.33.0</selenium.version>
        <prettyurl.version>1.5</prettyurl.version>
        <sal.version>2.10.4</sal.version>
        <ao.version>0.25.2</ao.version>
        <upm.version>2.12.2</upm.version>
        <jsr311.api.version>1.1.1</jsr311.api.version>
        <xml-apis.version>1.4.01</xml-apis.version>
        <xml-apis-ext.version>1.3.04</xml-apis-ext.version>
        <jaxb.api.version>2.1</jaxb.api.version>
        <jaxws.api.version>2.2-rc2</jaxws.api.version>
        <javax.annotation.api.version>1.3.2</javax.annotation.api.version>
        <ical4j.version>3.0.19</ical4j.version>
        <ical4j-extensions.version>1.0.4</ical4j-extensions.version>
        <org.bedework.version>4.0.4</org.bedework.version>
        <docker-maven-plugin.version>0.30.0</docker-maven-plugin.version>
        <plugin.testrunner.version>2.0.1</plugin.testrunner.version>
        <atlassian.spring.scanner.version>2.1.10</atlassian.spring.scanner.version>
        <spring.version>4.2.5.RELEASE</spring.version>
        <share-plugin.version>3.1</share-plugin.version>
        <soy.template.version>4.3.0</soy.template.version>
        <jquery.version>1.7.2</jquery.version>
        <aui.version>5.4.4</aui.version>
        <upm.version.amps>${upm.version}</upm.version.amps>
        <compress.resources>true</compress.resources>
        <confluence-extractor-api-plugin.version>2.0.7</confluence-extractor-api-plugin.version>
        <lucene-compat-plugin.version>1.1</lucene-compat-plugin.version>
        <pocketknife.version>0.71.0</pocketknife.version>
        <healthcheck.version>1.0.0</healthcheck.version>
        <maven.test.integration.skip>true</maven.test.integration.skip>

        <mockito.version>2.28.2</mockito.version>
        <byte-buddy.version>1.9.13</byte-buddy.version>
        <easymock.version>3.2</easymock.version>

        <antisamy.version>1.5.3-atlassian-7</antisamy.version>
        <maven.test.unit.skip>false</maven.test.unit.skip>
        <org.testcontainer.version>1.13.0</org.testcontainer.version>
        <!-- upm licensing differs in On Demand environments -->
        <jvm.args.user.timezone>Australia/Sydney</jvm.args.user.timezone>
        <jvm.args.custom />
        <jvm.args.xmx>2560m</jvm.args.xmx>
        <jvm.args.extra>-Duser.timezone=${jvm.args.user.timezone}</jvm.args.extra>
        <jvm.args>-Xms128m -Xmx${jvm.args.xmx}
            -Djava.awt.headless=true ${jvm.args.extra}
            -XX:+HeapDumpOnOutOfMemoryError
            -Dcom.atlassian.logout.invalidatesession=true
            -Dconfluence.invalidate.rpc.sessions=true
            -Dconfluence.disable.mailpolling=true
            -Dconfluence.index.manager.lock.timeout=5
            -Dconfluence.upgrade.recovery.file.enabled=false
            -Datlassian.darkfeature.pulp.disable=true
            ${jvm.args.custom}
        </jvm.args>

        <jira.jvm.args.custom />
        <jira.jvm.args.xmx>2560m</jira.jvm.args.xmx>
        <jira.jvm.args.extra>-Duser.timezone=${jvm.args.user.timezone}</jira.jvm.args.extra>
        <jira.jvm.args>-Xms384m -Xmx${jira.jvm.args.xmx} -Djava.awt.headless=true ${jira.jvm.args.extra}
            -XX:+HeapDumpOnOutOfMemoryError -Dcom.atlassian.logout.invalidatesession=true
            ${jira.jvm.args.custom}
        </jira.jvm.args>


        <failOnMilestoneOrReleaseCandidateDeps>false</failOnMilestoneOrReleaseCandidateDeps>

        <ajp.confluence.port>8009</ajp.confluence.port>
        <ajp.jira.port>18009</ajp.jira.port>

        <tomcat.version>tomcat8x</tomcat.version>
        <confluence-compat-lib.version>1.4.0</confluence-compat-lib.version>
        <functest.plugin.version>0.9.0</functest.plugin.version>
        <!-- Languages need to be updated manually (i.e. properties file is bundled in the plugin. -->
        <!-- These versions are here for reference -->
        <teamcal.language.german.version>5.3.19.v2r1282-2017-06-26</teamcal.language.german.version>
        <teamcal.language.french.version>5.3.19.v2r287-2017-06-26</teamcal.language.french.version>
        <teamcal.language.japanese.version>5.3.19.v2r895-2017-06-26</teamcal.language.japanese.version>
        <teamcal.language.us.version>5.3.19.v2r171-2017-06-26</teamcal.language.us.version>
        <teamcal.language.spanish.version>5.3.19.v2r331-2017-06-26</teamcal.language.spanish.version>
        <teamcal.language.italian.version>5.3.19.v2r702-2017-06-26</teamcal.language.italian.version>
        <teamcal.language.finnish.version>5.3.19.v2r1364-2017-06-26</teamcal.language.finnish.version>
        <teamcal.language.romanian.version>5.3.19.v2r97-2017-06-26</teamcal.language.romanian.version>
        <teamcal.language.norwegian.version>5.3.19.v2r110-2017-06-26</teamcal.language.norwegian.version>
        <teamcal.language.dutch.version>5.3.19.v2r298-2017-06-26</teamcal.language.dutch.version>
        <teamcal.language.danish.version>5.3.19.v2r162-2017-06-26</teamcal.language.danish.version>
        <teamcal.language.chinese.version>5.3.19.v2r1311-2017-06-26</teamcal.language.chinese.version>
        <teamcal.language.korean.version>5.3.19.v2r954-2017-06-26</teamcal.language.korean.version>
        <teamcal.language.portuguese.version>5.3.19.v2r405-2017-06-26</teamcal.language.portuguese.version>
        <teamcal.language.russian.version>5.3.19.v2r901-2017-06-26</teamcal.language.russian.version>
        <teamcal.language.czech.version>5.3.19.v2r1529-2017-06-26</teamcal.language.czech.version>
        <teamcal.language.slovak.version>5.3.19.v2r164-2017-06-26</teamcal.language.slovak.version>
        <teamcal.language.estonian.version>5.3.19.v2r311-2017-06-26</teamcal.language.estonian.version>
        <teamcal.language.icelandic.version>5.3.19.v2r157-2017-06-26</teamcal.language.icelandic.version>
        <teamcal.language.hungarian.version>5.3.19.v2r320-2017-06-26</teamcal.language.hungarian.version>
        <teamcal.language.swedish.version>5.3.19.v2r908-2017-06-26</teamcal.language.swedish.version>
        <teamcal.language.polish.version>5.3.19.v2r524-2017-06-26</teamcal.language.polish.version>
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-core</artifactId>
                <version>${mockito.version}</version>
            </dependency>
            <dependency>
                <groupId>net.bytebuddy</groupId>
                <artifactId>byte-buddy</artifactId>
                <version>${byte-buddy.version}</version>
            </dependency>
            <dependency>
                <groupId>net.bytebuddy</groupId>
                <artifactId>byte-buddy-agent</artifactId>
                <version>${byte-buddy.version}</version>
            </dependency>
            <dependency>
                <groupId>net.bytebuddy</groupId>
                <artifactId>byte-buddy-dep</artifactId>
                <version>${byte-buddy.version}</version>
            </dependency>

            <dependency>
                <groupId>org.hamcrest</groupId>
                <artifactId>hamcrest</artifactId>
                <version>2.1</version>
            </dependency>
            <dependency>
                <groupId>org.hamcrest</groupId>
                <artifactId>hamcrest-library</artifactId>
                <version>2.1</version>
            </dependency>
            <dependency>
                <groupId>org.hamcrest</groupId>
                <artifactId>hamcrest-core</artifactId>
                <version>2.1</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.confluence</groupId>
                <artifactId>confluence</artifactId>
                <version>${confluence.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.confluence.compat</groupId>
                <artifactId>confluence-compat-lib</artifactId>
                <version>${confluence-compat-lib.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.confluence</groupId>
                <artifactId>confluence-stateless-test-runner</artifactId>
                <version>${confluence.stateless.test.runner.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.confluence</groupId>
                <artifactId>confluence-rest-client</artifactId>
                <version>${confluence.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.functest</groupId>
                <artifactId>functest-plugin</artifactId>
                <version>${functest.plugin.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.confluence</groupId>
                <artifactId>confluence-plugins-platform-pom</artifactId>
                <version>${confluence.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>xml-apis</groupId>
                <artifactId>xml-apis</artifactId>
                <version>${xml-apis.version}</version>
            </dependency>
            <dependency>
                <groupId>xml-apis</groupId>
                <artifactId>xml-apis-ext</artifactId>
                <version>${xml-apis-ext.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.xml.bind</groupId>
                <artifactId>jaxb-api</artifactId>
                <version>${jaxb.api.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.ws.rs</groupId>
                <artifactId>jsr311-api</artifactId>
                <version>${jsr311.api.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.xml.ws</groupId>
                <artifactId>jaxws-api</artifactId>
                <version>${jaxws.api.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.annotation</groupId>
                <artifactId>javax.annotation-api</artifactId>
                <version>${javax.annotation.api.version}</version>
            </dependency>
            <dependency>
                <groupId>org.owasp.antisamy</groupId>
                <artifactId>antisamy</artifactId>
                <version>${antisamy.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.16</version>
                    <configuration>
                        <!-- Ignoring integration tests on test phase so they just run in integration-test phase.-->
                        <!-- This configuration is necessary when using AMPS together with a parent POM.-->
                        <excludes>
                            <exclude>it/**</exclude>
                        </excludes>
                        <skip>${maven.test.unit.skip}</skip>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>io.fabric8</groupId>
                    <artifactId>docker-maven-plugin</artifactId>
                    <version>${docker-maven-plugin.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>sql-maven-plugin</artifactId>
                    <version>1.4</version>
                </plugin>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>confluence-maven-plugin</artifactId>
                    <version>${amps8.version}</version>
                    <configuration>
                        <productVersion>${confluence.product.version}</productVersion>
                        <productDataVersion>${confluence.product.data.version}</productDataVersion>
                        <server>localhost</server>
                        <allowGoogleTracking>false</allowGoogleTracking>
                        <containerId>${tomcat.version}</containerId>
                        <skipAmpsPomCheck>true</skipAmpsPomCheck>
                        <enableDevToolbox>false</enableDevToolbox>
                        <enablePde>false</enablePde>
                        <enableQuickReload>false</enableQuickReload>
                        <quickReloadVersion>1.28</quickReloadVersion>
                        <compressJs>false</compressJs>
                        <compressCss>false</compressCss>
                        <compressResources>false</compressResources>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>amps-maven-plugin</artifactId>
                    <version>${amps8.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>2.5.3</version>
                    <configuration>
                        <preparationGoals>clean install</preparationGoals>
                        <!-- Don't upload source and javadoc jar -->
                        <useReleaseProfile>false</useReleaseProfile>
                        <releaseProfiles>third-party-licensing</releaseProfiles>
                        <goals>license:verify license:bom license:download deploy</goals>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>license-maven-plugin</artifactId>
                    <configuration>
                        <licensesDirectory>${user.dir}/third-party-licensing/licenses</licensesDirectory>
                        <bomFile>${user.dir}/third-party-licensing/bom.csv</bomFile>
                        <nonMavenDependenciesFile>${user.dir}/third-party-licensing/missing-non-maven-dependencies.properties</nonMavenDependenciesFile>
                        <ignoredArtifactsTrees>com.atlassian.confluence:confluence-test-support</ignoredArtifactsTrees>
                        <ignoredMavenScopes>test,provided</ignoredMavenScopes>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-antrun-plugin</artifactId>
                    <version>1.7</version>
                </plugin>
                <plugin>
                    <groupId>com.atlassian.plugin</groupId>
                    <artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
                    <version>${atlassian.spring.scanner.version}</version>
                    <executions>
                        <execution>
                            <goals>
                                <goal>atlassian-spring-scanner</goal>
                            </goals>
                            <phase>process-classes</phase>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
</project>
