<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright The WildFly Authors
  ~ SPDX-License-Identifier: Apache-2.0
  -->
<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>org.wildfly.bom.builder</groupId>
        <artifactId>wildfly</artifactId>
        <!--
        Maintain separation between the artifact id and the version to help prevent
        merge conflicts between commits changing the GA and those changing the V.
        -->
        <version>40.0.1.Final</version>
    </parent>

    <artifactId>wildfly-server</artifactId>

    <packaging>pom</packaging>

    <name>WildFly BOM Builders: Server</name>

    <description>The base Server BOM Builder dependency management and Plugin configuration.</description>

    <properties>
        <!-- the server BOMs built's groupId -->
        <bomGroupId>org.wildfly.bom</bomGroupId>
    </properties>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.wildfly.plugins</groupId>
                    <artifactId>wildfly-bom-builder-plugin</artifactId>
                    <configuration>
                        <!-- bom builder plugin config common to all server BOMs -->
                        <inheritExclusions>UNMANAGED</inheritExclusions>
                        <includeTransitives>true</includeTransitives>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <profiles>
        <profile>
            <id>base-feature-pack-build</id>
            <activation>
                <property>
                    <name>!no.base.build</name>
                </property>
            </activation>
            <modules>
                <module>ee</module>
            </modules>
        </profile>
        <profile>
            <id>expansion-feature-pack-build</id>
            <activation>
                <property>
                    <!-- Allow users to disable building expansion stuff if they just want base artifacts -->
                    <name>!no.expansion.build</name>
                </property>
            </activation>
            <modules>
                <module>expansion</module>
            </modules>
        </profile>
    </profiles>

</project>
