<?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>6.3.6</version>
    </parent>

    <groupId>com.atlassian.jira.plugins</groupId>
    <artifactId>jira-editor</artifactId>
    <packaging>pom</packaging>
    <version>10.0.0</version>
    <name>JIRA Editor POM</name>

    <modules>
        <module>plugin</module>
        <module>wiki-plugin</module>
        <module>integration-tests</module>
        <module>ref-plugin</module>
    </modules>

    <scm>
        <connection>scm:git:ssh://git@stash.atlassian.com:7997/JIRA/jira-editor-plugin.git</connection>
        <developerConnection>scm:git:ssh://git@stash.atlassian.com:7997/JIRA/jira-editor-plugin.git</developerConnection>
        <url>https://stash.atlassian.com/projects/JIRA/repos/jira-editor-plugin</url>
        <tag>jira-editor-10.0.0</tag>
    </scm>

    <properties>
        <!-- please carefully read 'README > Contributing > Creating new stable branch' if you are
        bumping major or minor jira.version -->
        <java.version>21</java.version>
        <jira.version>11.0.0-QR-20250617134047</jira.version>
        <jira.software.version>11.0.0-int-4867</jira.software.version>
        <servicedesk.version>11.0.0-QR-0111</servicedesk.version>
        <servicedesk.testutils.version>21.0.0-QR-0111</servicedesk.testutils.version>

        <amps.version>9.3.6-73502dab5</amps.version>
        <maven.javadoc.version>2.10.3</maven.javadoc.version>
        <atlassian.spring.scanner.version>3.0.2</atlassian.spring.scanner.version>
        <test-batching.version>5.0.1-jakarta-m001</test-batching.version>
        <atlassian-test-categories.version>0.5</atlassian-test-categories.version>

        <xvfb.enable>true</xvfb.enable>
        <surefire.skip>false</surefire.skip>

        <super.batch.for>none</super.batch.for>
        <atlassian.dev.mode>true</atlassian.dev.mode>

        <plugin.key>com.atlassian.jira.plugins.jira-editor-plugin</plugin.key>
        <ref.plugin.key>com.atlassian.jira.plugins.jira-editor-ref-plugin</ref.plugin.key>

        <frontend.maven.plugin.version>1.12.1</frontend.maven.plugin.version>
        <frontend.maven.plugin.install.directory>.node</frontend.maven.plugin.install.directory>
        <nodeVersion>v16.13.2</nodeVersion>
        <yarnVersion>v1.22.22</yarnVersion>
        <yarn.cmd.install>install --production --frozen-lockfile --prefer-offline --mutex network
            --no-progress</yarn.cmd.install>
        <yarn.cmd.install.dev>install --pure-lockfile --prefer-offline --mutex network</yarn.cmd.install.dev>
        <node.modules>${project.basedir}/node_modules</node.modules>

        <atlassian.test.run.only.quarantined>false</atlassian.test.run.only.quarantined>
        <atlassian.test.suite.excludes />
        <atlassian.test.suite.includes />
        <jira.functest.single.testclass />
        <atlassian.test.suite.package>it.com.atlassian.jira.plugins.editor</atlassian.test.suite.package>
        <atlassian.test.target.dir>${project.build.directory}</atlassian.test.target.dir>
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.atlassian.jira</groupId>
                <artifactId>jira-internal-bom</artifactId>
                <version>${jira.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.jira</groupId>
                <artifactId>jira-bundled-plugins-bom</artifactId>
                <version>${jira.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian</groupId>
                <artifactId>test-batching</artifactId>
                <version>${test-batching.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian</groupId>
                <artifactId>atlassian-test-categories</artifactId>
                <version>${atlassian-test-categories.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <dependencies>
                    <dependency>
                        <groupId>com.atlassian.maven.enforcer</groupId>
                        <artifactId>maven-enforcer-rules</artifactId>
                        <version>1.5.19</version>
                    </dependency>
                </dependencies>
                <executions>
                    <execution>
                        <id>ban-milestones-and-release-candidates</id>
                        <phase>compile</phase>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <skip>true</skip>
                            <rules>
                                <banVersionDeps>
                                    <ignoreProvided>true</ignoreProvided>
                                </banVersionDeps>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>

        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>amps-maven-plugin</artifactId>
                    <version>${amps.version}</version>
                    <extensions>true</extensions>
                    <configuration>
                        <systemPropertyVariables>
                            <super.batch.for>${super.batch.for}</super.batch.for>
                            <atlassian.dev.mode>${atlassian.dev.mode}</atlassian.dev.mode>
                            <xvfb.enable>${xvfb.enable}</xvfb.enable>
                        </systemPropertyVariables>
                        <pluginArtifacts combine.children="append">
                            <pluginArtifact>
                                <groupId>com.atlassian.plugins.jstestrunner</groupId>
                                <artifactId>atlassian-jstest-runner-plugin</artifactId>
                            </pluginArtifact>
                            <pluginArtifact>
                                <groupId>com.atlassian.jira.tests</groupId>
                                <artifactId>jira-testkit-plugin</artifactId>
                            </pluginArtifact>
                            <pluginArtifact>
                                <groupId>com.atlassian.jira</groupId>
                                <artifactId>jira-func-test-plugin</artifactId>
                                <version>${jira.version}</version>
                            </pluginArtifact>
                        </pluginArtifacts>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-clean-plugin</artifactId>
                    <configuration>
                        <filesets>
                            <fileset>
                                <directory>${node.modules}</directory>
                                <followSymlinks>false</followSymlinks>
                            </fileset>
                        </filesets>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
</project>

