<?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.bitbucket.server</groupId>
        <artifactId>bitbucket-parent</artifactId>
        <version>7.10.0-m1</version>
    </parent>

    <artifactId>bitbucket-features-parent</artifactId>
    <packaging>pom</packaging>

    <name>Bitbucket Server - Features Parent</name>

    <modules>
        <module>build</module>
        <module>labels</module>
        <module>rate-limit</module>
        <module>suggestions</module>
    </modules>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <annotationProcessors combine.children="append">
                        <!-- Generate type-safe Hibernate MetaModel classes from JPA entities. These will be written
                             to target/generated-sources/annotations and compiled into the model jar. -->
                        <processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor>
                        <!-- Generate "META-INF/spring-configuration-metadata.json" from @ConfigurationProperties -->
                        <processor>org.springframework.boot.configurationprocessor.ConfigurationMetadataAnnotationProcessor</processor>
                    </annotationProcessors>
                    <annotationProcessorPaths combine.children="append">
                        <path>
                            <groupId>javax.annotation</groupId>
                            <artifactId>javax.annotation-api</artifactId>
                            <version>${javax.annotation.libversion}</version>
                        </path>
                        <path>
                            <groupId>javax.xml.bind</groupId>
                            <artifactId>jaxb-api</artifactId>
                            <version>${jaxb.libversion}</version>
                        </path>
                        <path>
                            <groupId>org.glassfish.jaxb</groupId>
                            <artifactId>jaxb-runtime</artifactId>
                            <version>${jaxb.libversion}</version>
                        </path>
                        <path>
                            <groupId>org.hibernate</groupId>
                            <artifactId>hibernate-jpamodelgen</artifactId>
                            <version>${hibernate.libversion}</version>
                        </path>
                        <path>
                            <groupId>org.springframework.boot</groupId>
                            <artifactId>spring-boot-configuration-processor</artifactId>
                            <version>${spring.boot.libversion}</version>
                        </path>
                    </annotationProcessorPaths>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>normal-build</id>
            <activation>
                <property>
                    <name>!api-compat</name>
                </property>
            </activation>
            <modules>
                <module>labels</module>
            </modules>
        </profile>
    </profiles>
</project>
