<?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>
        <groupId>com.atlassian.pom</groupId>
        <artifactId>closedsource-private-pom</artifactId>
        <version>7.0.0</version>
    </parent>
    <groupId>com.atlassian.plugins</groupId>
    <artifactId>static-assets-url-root</artifactId>
    <version>5.1.0</version>
    <organization>
        <name>Atlassian</name>
        <url>http://www.atlassian.com/</url>
    </organization>
    <name>Static Assets</name>
    <description>
        Static assets url project
    </description>
    <packaging>pom</packaging>
    <scm>
        <connection>scm:git:ssh://git@stash.atlassian.com:7997/cp/static-assets-url.git</connection>
        <developerConnection>scm:git:ssh://git@stash.atlassian.com:7997/cp/static-assets-url.git</developerConnection>
        <url>https://stash.atlassian.com/projects/CP/repos/static-assets-url/</url>
        <tag>static-assets-url-root-5.1.0</tag>
    </scm>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.atlassian.platform.dependencies</groupId>
                <artifactId>platform-public-api</artifactId>
                <version>${platform.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.platform.dependencies</groupId>
                <artifactId>platform-internal-api</artifactId>
                <version>${platform.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
    <build>
        <plugins>
            <plugin>
                <groupId>com.diffplug.spotless</groupId>
                <artifactId>spotless-maven-plugin</artifactId>
                <version>2.43.0</version>
                <configuration>
                    <java>
                        <palantirJavaFormat>
                            <version>2.28.0</version>
                        </palantirJavaFormat>
                        <importOrder>
                            <wildcardsLast>true</wildcardsLast>
                            <order>java|javax|jakarta,lombok,org.spring|org|com|io,,com.atlassian,com.atlassian.beacon|\#,\#com.atlassian</order>
                        </importOrder>
                        <removeUnusedImports />
                    </java>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <profiles>
        <profile>
            <id>dev.mode</id>
            <properties>
                <frontend.install.cmd>${frontend.install.cmd.dev}</frontend.install.cmd>
                <yarn.build>build:dev</yarn.build>
            </properties>
        </profile>
    </profiles>
    <properties>
        <jdk.version>21</jdk.version>
        <maven.compiler.source>${jdk.version}</maven.compiler.source>
        <maven.compiler.target>${jdk.version}</maven.compiler.target>
        <maven.compiler.release>${jdk.version}</maven.compiler.release>
        <!-- Product versions -->
        <bitbucket.version>9.0.0</bitbucket.version>
        <confluence.version>9.0.2</confluence.version>
        <jira.version>10.0.0-m0011</jira.version>
        <!-- Atlassian dependencies -->
        <platform.version>8.0.0-jakarta-m022</platform.version>
        <amps.version>9.3.1</amps.version>
        <atlassian.spring.scanner.version>3.0.0</atlassian.spring.scanner.version>
        <!-- 3rd party dependencies -->
        <rest.assured.version>5.3.2</rest.assured.version>
        <!-- FrontEnd dependencies -->
        <frontend.maven.plugin.version>1.15.0</frontend.maven.plugin.version>
        <frontend.install.cmd>install --frozen-lockfile --prefer-offline --mutex network --no-progress</frontend.install.cmd>
        <frontend.install.cmd.dev>install --frozen-lockfile --prefer-offline --mutex network --no-progress</frontend.install.cmd.dev>
        <yarn.build>build</yarn.build>
        <node.path>${project.build.directory}</node.path>
        <!-- Keep these values in sync with the package.json file -->
        <node.version>v20.12.2</node.version>
        <yarn.version>v1.22.22</yarn.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <skipTests>false</skipTests>
        <!-- TODO(DCPL-1760): re-enable after the stable launch of Platform 7.1 -->
        <failOnMilestoneOrReleaseCandidateDeps>false</failOnMilestoneOrReleaseCandidateDeps>
        <junit.version>4.13.2</junit.version>
    </properties>
    <modules>
        <module>static-assets-url-api</module>
        <module>static-assets-url-plugin</module>
    </modules>
</project>
