<?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">
    <parent>
        <artifactId>workspace</artifactId>
        <groupId>com.atlassian.auinext</groupId>
        <version>11.0.0</version>
        <relativePath>../../pom.xml</relativePath>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.atlassian.aui</groupId>
    <artifactId>aui-soy</artifactId>

    <name>Atlassian UI Soy Templates</name>

    <description>AUI's uncompiled soy templates for use by consumers intending to perform server-side soy rendering</description>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>${maven-resources-plugin.version}</version>
                <executions>
                    <execution>
                        <id>copy-soy-templates</id>
                        <phase>process-sources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <!-- Specifying it here to avoid IntelliJ breaking with
                                multiple modules having the same directories. Bug is
                                https://youtrack.jetbrains.com/issue/IDEA-364116/ -->
                            <outputDirectory>${project.build.outputDirectory}/soy/atlassian</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>${aui.project.root.dir}/packages/soy/src</directory>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>
