<?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>confluence-plugins</artifactId>
        <groupId>com.atlassian.confluence</groupId>
        <version>6.7.0-CONFSRVDEV-4482-milestone</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.atlassian.confluence</groupId>
    <artifactId>confluence-misc-plugins</artifactId>
    <packaging>pom</packaging>

    <name>Confluence Miscellaneous Plugins Project</name>
    <!-- TODO move these into confluence-bundled-plugins -->
    <modules>
        <module>confluence-core-macros</module>
        <module>confluence-keyboard-shortcuts</module>
        <module>confluence-rest</module>
        <module>confluence-rpc-plugin</module>
        <module>confluence-sal</module>
    </modules>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>com.samaxes.maven</groupId>
                    <artifactId>minify-maven-plugin</artifactId>
                    <executions>
                        <execution>
                            <id>minify-resources</id>
                            <configuration>
                                <jsSourceIncludes>
                                    <jsSourceInclude>**/*.js</jsSourceInclude>
                                </jsSourceIncludes>
                                <cssSourceIncludes>
                                    <cssSourceInclude>**/*.css</cssSourceInclude>
                                </cssSourceIncludes>
                                <cssSourceDir>.</cssSourceDir>
                                <jsSourceDir>.</jsSourceDir>
                                <webappSourceDir>${project.build.outputDirectory}</webappSourceDir>
                                <webappTargetDir>${project.build.outputDirectory}</webappTargetDir>
                                <jsEngine>CLOSURE</jsEngine>
                                <suffix>-min</suffix>
                                <skipMerge>true</skipMerge>
                                <closureLanguage>ECMASCRIPT5</closureLanguage>
                            </configuration>
                            <goals>
                                <goal>minify</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
</project>
