<?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">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.atlassian.confluence.plugins</groupId>
        <artifactId>confluence-mobile-parent</artifactId>
        <version>9.0.1</version>
    </parent>

    <artifactId>confluence-mobile</artifactId>
    <version>9.0.1</version>
    <packaging>atlassian-plugin</packaging>

    <name>Confluence Mobile Web Plugin</name>
    <description>Mobile web plugin for Atlassian Confluence</description>

    <dependencies>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence</artifactId>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.codehaus.woodstox</groupId>
                    <artifactId>wstx-asl</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.atlassian.gzipfilter</groupId>
                    <artifactId>atlassian-gzipfilter</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>commons-lang</groupId>
                    <artifactId>commons-lang</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-webresource-plugin</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <scope>provided</scope>
        </dependency>

        <!-- REST dependencies -->
        <dependency>
            <groupId>com.atlassian.plugins.rest</groupId>
            <artifactId>atlassian-rest-common</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins.rest</groupId>
            <artifactId>com.atlassian.jersey-library</artifactId>
            <type>pom</type>
            <scope>provided</scope>
        </dependency>
        <!-- REST dependencies -->

        <dependency>
            <groupId>javax.ws.rs</groupId>
            <artifactId>jsr311-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>confluence-edge-index</artifactId>
            <version>${confluence.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence.rest</groupId>
            <artifactId>confluence-rest-plugin</artifactId>
            <version>${confluence.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>confluence-soy</artifactId>
            <version>${confluence.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>confluence-inline-comments</artifactId>
            <version>${confluence-inline-comments.version}</version>
            <scope>provided</scope>
        </dependency>

        <!-- TEST DEPENDENCIES-->

        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>commons-lang</groupId>
            <artifactId>commons-lang</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-release-plugin</artifactId>
                <configuration>
                    <!-- When using atlassian-public-pom as parent POM we need this configuration to skip tests, -->
                    <!-- as command line arguments are ignored. -->
                    <arguments>-Prelease -DskipTests</arguments>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.atlassian.lesscss</groupId>
                <artifactId>lesscss-maven-plugin</artifactId>
                <version>3.3.3</version>
                <executions>
                    <execution>
                        <id>compile-less</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>compile</goal>
                        </goals>
                        <configuration>
                            <sourceDirectory>${project.basedir}/src/main/resources</sourceDirectory>
                            <outputDirectory>${project.build.outputDirectory}</outputDirectory>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>maven-confluence-plugin</artifactId>
                <version>${amps.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Export-Package>com.atlassian.confluence.plugins.mobile.velocity;version="${confluence.version}"</Export-Package>
                        <!--

                        Due to very buggy bnd as of now, have to explicitly list all the existing imports.
                        Star (aka asterisk, aka *) at the end just in case something else will be added to the classes.
                        Please, make sure you run all the tests before changing anything here.
                        Should be no need in such a monster-looking lists after we upgrade to bug-less BNDlib.
                        See CONFDEV-18604 and all the related pain issues.
                        -->
                        <Import-Package>
                            com.atlassian.analytics.api.annotations,
                            com.atlassian.bonnie,
                            com.atlassian.cache,
                            com.atlassian.confluence.api.impl.pagination,
                            com.atlassian.confluence.content,
                            com.atlassian.confluence.content.render.xhtml,
                            com.atlassian.confluence.content.render.xhtml.compatibility,
                            com.atlassian.confluence.content.render.xhtml.links,
                            com.atlassian.confluence.content.render.xhtml.macro,
                            com.atlassian.confluence.content.render.xhtml.model.links,
                            com.atlassian.confluence.content.render.xhtml.model.resource.identifiers,
                            com.atlassian.confluence.content.render.xhtml.storage,
                            com.atlassian.confluence.content.render.xhtml.transformers,
                            com.atlassian.confluence.content.render.xhtml.view.link,
                            com.atlassian.confluence.content.render.xhtml.view.macro,
                            com.atlassian.confluence.core,
                            com.atlassian.confluence.event.events.content,
                            com.atlassian.confluence.event.events.content.blogpost,
                            com.atlassian.confluence.event.events.content.page,
                            com.atlassian.confluence.follow,
                            com.atlassian.confluence.internal.follow,
                            com.atlassian.confluence.labels,
                            com.atlassian.confluence.languages,
                            com.atlassian.confluence.like,
                            com.atlassian.confluence.macro,
                            com.atlassian.confluence.macro.xhtml,
                            com.atlassian.confluence.mail.notification,
                            com.atlassian.confluence.pages,
                            com.atlassian.confluence.plugin.descriptor,
                            com.atlassian.confluence.plugin.webresource,
                            com.atlassian.confluence.plugins.rest.dto,
                            com.atlassian.confluence.plugins.rest.entities,
                            com.atlassian.confluence.plugins.rest.filter,
                            com.atlassian.confluence.plugins.rest.manager,
                            com.atlassian.confluence.plugins.soy,
                            com.atlassian.confluence.renderer,
                            com.atlassian.confluence.renderer.template,
                            com.atlassian.confluence.search.lucene.extractor,
                            com.atlassian.confluence.search.lucene.filter,
                            com.atlassian.confluence.search.service,
                            com.atlassian.confluence.search.v2,
                            com.atlassian.confluence.search.v2.lucene,
                            com.atlassian.confluence.search.v2.query,
                            com.atlassian.confluence.search.v2.searchfilter,
                            com.atlassian.confluence.search.v2.sort,
                            com.atlassian.confluence.security,
                            com.atlassian.confluence.servlet,
                            com.atlassian.confluence.setup.bandana,
                            com.atlassian.confluence.setup.settings,
                            com.atlassian.confluence.spaces,
                            com.atlassian.confluence.user,
                            com.atlassian.confluence.user.actions,
                            com.atlassian.confluence.util,
                            com.atlassian.confluence.util.i18n,
                            com.atlassian.confluence.util.velocity,
                            com.atlassian.confluence.velocity.htmlsafe,
                            com.atlassian.confluence.web,
                            com.atlassian.confluence.xhtml.api,
                            com.atlassian.core.exception,
                            com.atlassian.core.filters,
                            com.atlassian.core.user.preferences,
                            com.atlassian.core.util,
                            com.atlassian.event,
                            com.atlassian.event.api,
                            com.atlassian.plugin,
                            com.atlassian.plugin.event,
                            com.atlassian.plugin.event.events,
                            com.atlassian.plugin.osgi.bridge.external,
                            com.atlassian.plugin.predicate,
                            com.atlassian.plugin.servlet,
                            com.atlassian.plugin.web,
                            com.atlassian.plugin.web.descriptors,
                            com.atlassian.plugin.web.model,
                            com.atlassian.plugin.webresource,
                            com.atlassian.plugin.webresource.assembler,
                            com.atlassian.plugin.webresource.cdn,
                            com.atlassian.plugin.webresource.condition,
                            com.atlassian.plugin.webresource.servlet,
                            com.atlassian.plugin.webresource.url,
                            com.atlassian.plugins.rest.common.security,
                            com.atlassian.sal.api.message,
                            com.atlassian.sal.api.transaction,
                            com.atlassian.sal.api.user,
                            com.atlassian.user,
                            com.atlassian.user.repository,
                            com.atlassian.user.search,
                            com.atlassian.user.search.page,
                            com.atlassian.user.search.query,
                            com.atlassian.user.security.password,
                            com.atlassian.util.concurrent,
                            com.atlassian.webresource.api,
                            com.atlassian.webresource.api.assembler,
                            com.atlassian.webresource.api.prebake,
                            com.google.common.base,
                            com.google.common.collect,
                            com.google.gson,
                            com.octo.captcha.service.image,
                            com.opensymphony.module.propertyset,
                            javax.annotation,
                            javax.servlet,
                            javax.servlet.http,
                            javax.ws.rs,
                            javax.ws.rs.core,
                            javax.xml.stream,
                            net.jcip.annotations,
                            org.apache.commons.lang3,
                            org.apache.commons.lang3.builder,
                            org.apache.lucene.index,
                            org.apache.lucene.queries,
                            org.apache.lucene.search,
                            org.codehaus.jackson.annotate,
                            org.codehaus.jackson.map,
                            org.codehaus.jackson.map.annotate,
                            org.slf4j,
                            org.springframework.beans.factory.annotation,
                            org.springframework.util,
                            *
                        </Import-Package>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
