<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.healthcheck</groupId>
        <artifactId>atlassian-healthcheck-parent</artifactId>
        <version>7.0.1</version>
    </parent>

    <artifactId>atlassian-healthcheck</artifactId>
    <packaging>atlassian-plugin</packaging>

    <name>Atlassian HealthCheck Common Module</name>
    <description>Provides the health-check module and rest endpoints for running the health checks, plus some default checks.</description>

    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>amps-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <enableQuickReload>true</enableQuickReload>
                    <instructions>
                        <Import-Package>
                            com.atlassian.healthcheck.spi, <!-- Exported from product core -->
                            com.atlassian.plugin,
                            com.atlassian.plugin.impl, <!-- For UnloadablePlugin - no other way to detect these. -->
                            com.atlassian.plugin.descriptors,
                            com.atlassian.plugin.module,
                            com.atlassian.plugin.predicate,
                            com.atlassian.plugins.rest.common.security,
                            com.atlassian.plugins.rest.common.security.descriptor,
                            com.atlassian.sal.api.lifecycle,
                            com.atlassian.sal.api.user,
                            com.google.common.base,
                            com.google.common.collect,
                            javax.ws.rs,
                            javax.ws.rs.core,
                            javax.xml.bind.annotation;version="2.1",
                            org.slf4j,
                            org.springframework.beans.factory;version="5",
                            org.dom4j*;version="0.0.0"
                        </Import-Package>
                        <Export-Package>
                            com.atlassian.healthcheck.core
                        </Export-Package>
                        <Spring-Context>*</Spring-Context>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>com.atlassian.healthcheck</groupId>
            <artifactId>atlassian-healthcheck-spi</artifactId>
            <version>${project.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.healthcheck</groupId>
            <artifactId>atlassian-healthcheck-plugin-check-api</artifactId>
            <!-- Intentionally compile-scoped, bundled inside plugin.
                 It's a separate module so it can be reused by test-support. -->
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-core</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.sal</groupId>
            <artifactId>sal-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.annotations</groupId>
            <artifactId>atlassian-annotations</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins.rest</groupId>
            <artifactId>atlassian-rest-common</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.ws.rs</groupId>
            <artifactId>javax.ws.rs-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.xml.bind</groupId>
            <artifactId>jaxb-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-beans</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-library</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-nop</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

</project>
