<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/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.atlassian.crowd</groupId>
        <artifactId>embedded-crowd</artifactId>
        <version>8.0.0-m10</version>
    </parent>

    <artifactId>embedded-crowd-api</artifactId>

    <name>Atlassian Embedded Crowd - API</name>

    <dependencies>

        <dependency>
            <groupId>com.atlassian.annotations</groupId>
            <artifactId>atlassian-annotations</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>jakarta.annotation</groupId>
            <artifactId>jakarta.annotation-api</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <scope>test</scope>
        </dependency>

        <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>org.hamcrest</groupId>
            <artifactId>hamcrest</artifactId>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-core</artifactId>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <id>ban-commons-and-guava-in-public-api</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <bannedDependencies>
                                    <searchTransitive>true</searchTransitive>
                                    <message>Apache Commons and Guava must not be used in platform public API modules. Use plain Java instead.</message>
                                    <excludes>
                                        <exclude>org.apache.commons</exclude>
                                        <exclude>commons-lang</exclude>
                                        <exclude>commons-collections</exclude>
                                        <exclude>commons-codec</exclude>
                                        <exclude>commons-io</exclude>
                                        <exclude>commons-beanutils</exclude>
                                        <exclude>commons-logging</exclude>
                                        <exclude>com.google.guava</exclude>
                                    </excludes>
                                    <includes>
                                        <include>org.apache.commons:*:*:*:test</include>
                                        <include>commons-lang:*:*:*:test</include>
                                        <include>commons-collections:*:*:*:test</include>
                                        <include>commons-codec:*:*:*:test</include>
                                        <include>commons-io:*:*:*:test</include>
                                        <include>commons-beanutils:*:*:*:test</include>
                                        <include>commons-logging:*:*:*:test</include>
                                        <include>com.google.guava:*:*:*:test</include>
                                    </includes>
                                </bannedDependencies>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>
