<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <artifactId>public-pom</artifactId>
        <groupId>com.atlassian.pom</groupId>
        <version>5.0.7</version>
    </parent>

    <groupId>com.atlassian.auinext</groupId>
    <artifactId>workspace</artifactId>
    <packaging>pom</packaging>
    <version>8.1.6</version>

    <name>AUI Next - Workspace</name>
    <url>https://bitbucket.org/atlassian/aui</url>

    <organization>
        <name>Atlassian Pty Ltd.</name>
        <url>https://www.atlassian.com/</url>
    </organization>

    <scm>
        <connection>scm:git:ssh://git@bitbucket.org/atlassian/aui.git</connection>
        <developerConnection>scm:git:ssh://git@bitbucket.org/atlassian/aui.git</developerConnection>
        <url>https://bitbucket.org/atlassian/aui</url>
    </scm>

    <issueManagement>
        <system>JIRA</system>
        <url>https://ecosystem.atlassian.net/browse/AUI</url>
    </issueManagement>

    <ciManagement>
        <system>Bamboo</system>
        <url>https://ecosystem-bamboo.internal.atlassian.com/browse/AUI</url>
    </ciManagement>

    <licenses>
        <license>
            <name>Atlassian Developer Terms</name>
            <url>https://developer.atlassian.com/platform/marketplace/atlassian-developer-terms/</url>
            <distribution>repo</distribution>
            <comments>Refer to licenses directory for full licensing details about AUI and the libraries bundled in AUI.</comments>
        </license>
    </licenses>

    <modules>
        <module>p2-plugin</module>
        <module>p2-harness</module>
        <module>p2-soy</module>
    </modules>

    <properties>
        <!-- Frontend build stuff. Keep in sync with package.json engines -->
        <node.path>${project.build.directory}</node.path>
        <node.version>v12.22.1</node.version>
        <yarn.version>v1.22.5</yarn.version>
        <frontend.install.cmd>install --frozen-lockfile --prefer-offline --mutex network</frontend.install.cmd>
        <frontend.maven.plugin.version>1.11.3</frontend.maven.plugin.version>

        <!-- Boring platform stuff -->
        <platform.version>3.6.0</platform.version>
        <refapp.version>3.3.11</refapp.version>
        <amps.version>6.3.15</amps.version>
        <atlassian.spring.scanner.version>2.1.5</atlassian.spring.scanner.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.atlassian.platform</groupId>
                <artifactId>platform</artifactId>
                <version>${platform.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.platform</groupId>
                <artifactId>third-party</artifactId>
                <version>${platform.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>com.github.eirslett</groupId>
                    <artifactId>frontend-maven-plugin</artifactId>
                    <version>${frontend.maven.plugin.version}</version>
                    <configuration>
                        <nodeVersion>${node.version}</nodeVersion>
                        <yarnVersion>${yarn.version}</yarnVersion>
                        <installDirectory>${node.path}</installDirectory>
                        <npmInheritsProxyConfigFromMaven>true</npmInheritsProxyConfigFromMaven>
                        <workingDirectory>${root.location}</workingDirectory>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
</project>
