<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://maven.apache.org/POM/4.0.0"
         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>org.mule.runtime</groupId>
        <artifactId>api-annotations-parent</artifactId>
        <version>1.11.2</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <artifactId>api-annotations</artifactId>
    <packaging>jar</packaging>
    <name>API Annotations</name>
    <description>Annotations used for Mule Module API definition</description>

    <properties>
        <javaReleaseVersion>8</javaReleaseVersion>

        <skipMuleModuleMojos>true</skipMuleModuleMojos>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <executions>
                    <execution>
                        <id>default-compile</id>
                        <configuration>
                            <release>11</release>
                            <!-- no excludes: compile everything to ensure module-info contains right entries -->
                        </configuration>
                    </execution>
                    <execution>
                        <id>base-compile</id>
                        <goals>
                            <goal>compile</goal>
                        </goals>
                        <configuration>
                            <release>${javaReleaseVersion}</release>
                            <!-- recompile everything for target VM except the module-info.java and jpms specific stuff -->
                            <excludes>
                                <exclude>module-info.java</exclude>
                                <exclude>org/mule/api/annotation/jpms/**</exclude>
                            </excludes>
                        </configuration>
                    </execution>
                </executions>
                <configuration>
                    <proc>none</proc>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
