<?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>

    <groupId>io.micronaut.maven</groupId>
    <artifactId>micronaut-maven-plugin-parent</artifactId>
    <version>5.0.2</version>
    <packaging>pom</packaging>

    <name>Micronaut Maven Plugin - Parent</name>
    <description>Parent POM of the Micronaut Maven Plugin</description>
    <url>https://github.com/micronaut-projects/micronaut-maven-plugin</url>
    <inceptionYear>2020</inceptionYear>

    <modules>
        <module>micronaut-maven-aot-core</module>
        <module>micronaut-maven-aot-plugin</module>
        <module>micronaut-maven-core</module>
        <module>micronaut-maven-enforcer-rules</module>
        <module>micronaut-maven-jib-integration</module>
        <module>micronaut-maven-plugin</module>
        <module>micronaut-maven-integration-tests</module>
    </modules>

    <issueManagement>
        <system>GitHub</system>
        <url>https://github.com/micronaut-projects/micronaut-maven-plugin/issues</url>
    </issueManagement>

    <ciManagement>
        <system>GitHub Actions</system>
        <url>https://github.com/micronaut-projects/micronaut-maven-plugin/actions</url>
    </ciManagement>

    <scm>
        <url>https://github.com/micronaut-projects/micronaut-maven-plugin</url>
        <connection>scm:git:git@github.com:micronaut-projects/micronaut-maven-plugin.git</connection>
        <developerConnection>scm:git:git@github.com:micronaut-projects/micronaut-maven-plugin.git</developerConnection>
        <tag>v5.0.2</tag>
    </scm>

    <licenses>
        <license>
            <name>Apache License, Version 2.0</name>
            <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <organization>
        <name>Micronaut</name>
        <url>https://micronaut.io/</url>
    </organization>

    <developers>
        <developer>
            <name>Álvaro Sánchez-Mariscal</name>
            <url>https://github.com/alvarosanchez</url>
        </developer>
    </developers>

    <properties>
        <jdk.version>25</jdk.version>
        <maven.compiler.source>${jdk.version}</maven.compiler.source>
        <maven.compiler.target>${jdk.version}</maven.compiler.target>

        <maven.version>3.9.15</maven.version>
        <micronaut.version>5.0.2</micronaut.version>
        <native-maven-plugin.version>1.1.0</native-maven-plugin.version>
        <micronaut.aot.version>3.0.0</micronaut.aot.version>
        <micronaut.test.resources.version>4.0.0</micronaut.test.resources.version>
        <micronaut.openapi.version>7.0.0</micronaut.openapi.version>
        <micronaut.jsonschema.version>2.0.0</micronaut.jsonschema.version>

        <maven.resources-plugin.version>3.4.0</maven.resources-plugin.version>
        <maven.archiver-plugin.version>3.6.0</maven.archiver-plugin.version>
        <maven.invoker.version>3.3.0</maven.invoker.version>
        <plexus.utils.version>4.0.3</plexus.utils.version>
        <mojo.executor.version>2.4.1</mojo.executor.version>
        <commons.io.version>2.21.0</commons.io.version>
        <commons.compress.version>1.28.0</commons.compress.version>
        <commons.lang3.version>3.20.0</commons.lang3.version>
        <bouncycastle.version>1.84</bouncycastle.version>
        <jansi.version>2.4.2</jansi.version>
        <maven.plugin.testing.harness.version>3.5.1</maven.plugin.testing.harness.version>

        <site.path>${project.artifactId}</site.path>
        <site.name>${project.name}</site.name>
        <site.description>${project.description}</site.description>
        <site.version>${project.version}</site.version>

        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <project.build.outputTimestamp>2026-07-23T09:21:36Z</project.build.outputTimestamp>

        <sonar.host.url>https://sonarcloud.io</sonar.host.url>
        <sonar.organization>micronaut-projects</sonar.organization>
        <sonar.java.checkstyle.reportPaths>${project.basedir}/target/checkstyle-result.xml</sonar.java.checkstyle.reportPaths>
        <sonar.coverage.jacoco.xmlReportPaths>${maven.multiModuleProjectDirectory}/**/target/site/jacoco/jacoco.xml,${maven.multiModuleProjectDirectory}/micronaut-maven-integration-tests/target/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>

        <jacoco.version>0.8.14</jacoco.version>
        <junit-jupiter.version>6.0.3</junit-jupiter.version>
        <directory-watcher.version>0.19.1</directory-watcher.version>
        <testcontainers.version>2.0.4</testcontainers.version>
        <jib-maven-plugin.version>3.5.1</jib-maven-plugin.version>
        <snakeyaml.version>2.5</snakeyaml.version>
        <sisu.version>1.0.0</sisu.version>
        <docker-java.version>3.7.1</docker-java.version>
        <checkstyle.config.dir.path>${maven.multiModuleProjectDirectory}/config/checkstyle</checkstyle.config.dir.path>
        <spotless.licenseHeader.path>${maven.multiModuleProjectDirectory}/config/spotless.license.java</spotless.licenseHeader.path>
        <maven-plugin-tools.version>3.15.2</maven-plugin-tools.version>
        <jackson.version>2.21.5</jackson.version>
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.apache.maven</groupId>
                <artifactId>maven-core</artifactId>
                <version>${maven.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.maven</groupId>
                <artifactId>maven-plugin-api</artifactId>
                <version>${maven.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.maven.shared</groupId>
                <artifactId>maven-invoker</artifactId>
                <version>${maven.invoker.version}</version>
            </dependency>
            <dependency>
                <groupId>io.methvin</groupId>
                <artifactId>directory-watcher</artifactId>
                <version>${directory-watcher.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>${maven.resources-plugin.version}</version>
            </dependency>
            <dependency>
                <groupId>org.codehaus.plexus</groupId>
                <artifactId>plexus-utils</artifactId>
                <version>${plexus.utils.version}</version>
            </dependency>
            <dependency>
                <groupId>org.codehaus.plexus</groupId>
                <artifactId>plexus-xml</artifactId>
                <version>3.0.2</version>
            </dependency>
            <dependency>
                <groupId>org.twdata.maven</groupId>
                <artifactId>mojo-executor</artifactId>
                <version>${mojo.executor.version}</version>
            </dependency>
            <dependency>
                <groupId>org.testcontainers</groupId>
                <artifactId>testcontainers</artifactId>
                <version>${testcontainers.version}</version>
            </dependency>
            <dependency>
                <groupId>io.micronaut</groupId>
                <artifactId>micronaut-inject</artifactId>
                <version>${micronaut.version}</version>
            </dependency>
            <dependency>
                <groupId>org.yaml</groupId>
                <artifactId>snakeyaml</artifactId>
                <version>${snakeyaml.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>${commons.io.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-compress</artifactId>
                <version>${commons.compress.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-lang3</artifactId>
                <version>${commons.lang3.version}</version>
            </dependency>
            <dependency>
                <groupId>org.fusesource.jansi</groupId>
                <artifactId>jansi</artifactId>
                <version>${jansi.version}</version>
            </dependency>
            <dependency>
                <groupId>org.junit.jupiter</groupId>
                <artifactId>junit-jupiter-engine</artifactId>
                <version>${junit-jupiter.version}</version>
            </dependency>
            <dependency>
                <groupId>org.junit.jupiter</groupId>
                <artifactId>junit-jupiter-params</artifactId>
                <version>${junit-jupiter.version}</version>
            </dependency>
            <dependency>
                <groupId>com.github.docker-java</groupId>
                <artifactId>docker-java-core</artifactId>
                <version>${docker-java.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>com.google.guava</groupId>
                        <artifactId>guava</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.github.docker-java</groupId>
                <artifactId>docker-java-transport-zerodep</artifactId>
                <version>${docker-java.version}</version>
            </dependency>
            <dependency>
                <groupId>org.bouncycastle</groupId>
                <artifactId>bcpkix-jdk18on</artifactId>
                <version>${bouncycastle.version}</version>
            </dependency>
            <dependency>
                <groupId>org.bouncycastle</groupId>
                <artifactId>bcprov-jdk18on</artifactId>
                <version>${bouncycastle.version}</version>
            </dependency>
            <dependency>
                <groupId>org.bouncycastle</groupId>
                <artifactId>bcutil-jdk18on</artifactId>
                <version>${bouncycastle.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.maven.plugin-tools</groupId>
                <artifactId>maven-plugin-annotations</artifactId>
                <version>${maven-plugin-tools.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.maven.plugin-testing</groupId>
                <artifactId>maven-plugin-testing-harness</artifactId>
                <version>${maven.plugin.testing.harness.version}</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.sisu</groupId>
                <artifactId>org.eclipse.sisu.inject</artifactId>
                <version>${sisu.version}</version>
            </dependency>
            <dependency>
                <groupId>org.graalvm.buildtools</groupId>
                <artifactId>utils</artifactId>
                <version>${native-maven-plugin.version}</version>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-core</artifactId>
                <version>5.21.0</version>
            </dependency>
            <dependency>
                <groupId>org.junit-pioneer</groupId>
                <artifactId>junit-pioneer</artifactId>
                <version>2.3.0</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.junit.platform</groupId>
                        <artifactId>junit-platform-launcher</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson</groupId>
                <artifactId>jackson-bom</artifactId>
                <version>${jackson.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
            <plugins>
                <plugin>
                    <artifactId>maven-clean-plugin</artifactId>
                    <version>3.5.0</version>
                </plugin>
                <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_maven-plugin_packaging -->
                <plugin>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>3.5.0</version>
                </plugin>
                <plugin>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.15.0</version>
                    <configuration>
                        <annotationProcessorPaths>
                            <path>
                                <groupId>org.eclipse.sisu</groupId>
                                <artifactId>org.eclipse.sisu.inject</artifactId>
                                <version>${sisu.version}</version>
                            </path>
                        </annotationProcessorPaths>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-plugin-plugin</artifactId>
                    <version>${maven-plugin-tools.version}</version>
                </plugin>
                <plugin>
                    <artifactId>maven-plugin-report-plugin</artifactId>
                    <version>${maven-plugin-tools.version}</version>
                    <configuration>
                        <requirementsHistoryDetectionRange>[4.0.0,)</requirementsHistoryDetectionRange>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>3.5.6</version>
                </plugin>
                <plugin>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>3.5.0</version>
                </plugin>
                <plugin>
                    <artifactId>maven-install-plugin</artifactId>
                    <version>3.1.4</version>
                </plugin>
                <plugin>
                    <artifactId>maven-deploy-plugin</artifactId>
                    <version>3.1.4</version>
                </plugin>
                <plugin>
                    <artifactId>maven-invoker-plugin</artifactId>
                    <version>3.9.1</version>
                </plugin>
                <plugin>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>3.12.0</version>
                </plugin>
                <plugin>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>3.21.0</version>
                </plugin>
                <plugin>
                    <artifactId>maven-project-info-reports-plugin</artifactId>
                    <version>3.9.0</version>
                </plugin>
                <plugin>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>3.4.0</version>
                </plugin>
                <plugin>
                    <groupId>org.sonatype.central</groupId>
                    <artifactId>central-publishing-maven-plugin</artifactId>
                    <version>0.10.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-gpg-plugin</artifactId>
                    <version>3.2.8</version>
                </plugin>
                <plugin>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>3.3.1</version>
                </plugin>
                <plugin>
                    <artifactId>maven-checkstyle-plugin</artifactId>
                    <version>3.6.0</version>
                    <dependencies>
                        <dependency>
                            <groupId>com.puppycrawl.tools</groupId>
                            <artifactId>checkstyle</artifactId>
                            <version>13.3.0</version>
                        </dependency>
                    </dependencies>
                </plugin>
                <plugin>
                    <groupId>com.diffplug.spotless</groupId>
                    <artifactId>spotless-maven-plugin</artifactId>
                    <version>3.4.0</version>
                </plugin>
                <plugin>
                    <groupId>org.jacoco</groupId>
                    <artifactId>jacoco-maven-plugin</artifactId>
                    <version>${jacoco.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.eclipse.sisu</groupId>
                    <artifactId>sisu-maven-plugin</artifactId>
                    <version>${sisu.version}</version>
                </plugin>
                <plugin>
                    <groupId>com.gradle</groupId>
                    <artifactId>develocity-maven-extension</artifactId>
                    <configuration>
                        <develocity>
                            <plugins>
                                <plugin>
                                    <artifactId>maven-checkstyle-plugin</artifactId>
                                    <inputs>
                                        <properties>
                                            <property>
                                                <name>propertyExpansion</name>
                                                <value>config_loc=ignored</value>
                                            </property>
                                        </properties>
                                        <fileSets>
                                            <fileSet>
                                                <name>checkstyleConfigs</name>
                                                <paths>
                                                    <path>${checkstyle.config.dir.path}</path>
                                                </paths>
                                                <normalization>RELATIVE_PATH</normalization>
                                            </fileSet>
                                        </fileSets>
                                    </inputs>
                                </plugin>
                                <plugin>
                                    <groupId>com.diffplug.spotless</groupId>
                                    <artifactId>spotless-maven-plugin</artifactId>
                                    <inputs>
                                        <fileSets>
                                            <fileSet>
                                                <name>baseDir</name>
                                                <excludes>
                                                    <exclude>.idea/*</exclude>
                                                    <exclude>.git/*</exclude>
                                                    <exclude>**/target/*</exclude>
                                                    <exclude>config/checkstyle/*</exclude>
                                                    <exclude>.mvn/.gradle-enterprise/gradle-enterprise-workspace-id</exclude>
                                                </excludes>
                                                <normalization>
                                                    <ignoreEmptyDirectories>true</ignoreEmptyDirectories>
                                                    <ignoreLineEndings>true</ignoreLineEndings>
                                                </normalization>
                                            </fileSet>
                                            <fileSet>
                                                <name>licenseFile</name>
                                                <paths>
                                                    <path>${spotless.licenseHeader.path}</path>
                                                </paths>
                                                <normalization>RELATIVE_PATH</normalization>
                                            </fileSet>
                                        </fileSets>
                                        <properties>
                                            <property>
                                                <name>applySkip</name>
                                            </property>
                                            <property>
                                                <name>encoding</name>
                                            </property>
                                            <property>
                                                <name>checkSkip</name>
                                            </property>
                                            <property>
                                                <name>filePatterns</name>
                                            </property>
                                            <property>
                                                <name>goal</name>
                                            </property>
                                            <property>
                                                <name>setLicenseHeaderYearsFromGitHistory</name>
                                            </property>
                                            <property>
                                                <name>skip</name>
                                            </property>
                                            <property>
                                                <name>ratchetFrom</name>
                                            </property>
                                        </properties>
                                        <ignoredProperties>
                                            <ignore>repositorySystemSession</ignore>
                                            <ignore>repositories</ignore>
                                            <ignore>project</ignore>
                                            <ignore>lineEndings</ignore>
                                        </ignoredProperties>
                                    </inputs>
                                    <iteratedProperties>
                                        <property>
                                            <name>formats</name>
                                            <inputs>
                                                <properties>
                                                    <property>
                                                        <name>encoding</name>
                                                    </property>
                                                    <property>
                                                        <name>lineEndings</name>
                                                    </property>
                                                    <property>
                                                        <name>ratchetFrom</name>
                                                    </property>
                                                    <property>
                                                        <name>includes</name>
                                                    </property>
                                                    <property>
                                                        <name>excludes</name>
                                                    </property>
                                                </properties>
                                            </inputs>
                                        </property>
                                    </iteratedProperties>
                                    <nestedProperties>
                                        <property>
                                            <name>licenseHeader</name>
                                            <inputs>
                                                <properties>
                                                    <property>
                                                        <name>file</name>
                                                    </property>
                                                    <property>
                                                        <name>content</name>
                                                    </property>
                                                    <property>
                                                        <name>delimiter</name>
                                                    </property>
                                                    <property>
                                                        <name>skipLinesMatching</name>
                                                    </property>
                                                </properties>
                                            </inputs>
                                        </property>
                                        <property>
                                            <name>upToDateChecking</name>
                                            <inputs>
                                                <properties>
                                                    <property>
                                                        <name>enabled</name>
                                                    </property>
                                                    <property>
                                                        <name>indexFile</name>
                                                    </property>
                                                </properties>
                                            </inputs>
                                        </property>
                                        <!-- Entities used by Spotless with parameters defined in FormatterFactory -->
                                        <property>
                                            <name>java</name>
                                        </property>
                                        <property>
                                            <name>python</name>
                                        </property>
                                        <property>
                                            <name>scala</name>
                                        </property>
                                        <property>
                                            <name>groovy</name>
                                        </property>
                                        <property>
                                            <name>javascript</name>
                                        </property>
                                        <property>
                                            <name>json</name>
                                        </property>
                                        <property>
                                            <name>kotlin</name>
                                        </property>
                                        <property>
                                            <name>cpp</name>
                                        </property>
                                        <property>
                                            <name>antlr4</name>
                                        </property>
                                        <property>
                                            <name>sql</name>
                                        </property>
                                        <property>
                                            <name>typescript</name>
                                        </property>
                                        <property>
                                            <name>yaml</name>
                                        </property>
                                        <property>
                                            <name>pom</name>
                                        </property>
                                        <property>
                                            <name>markdown</name>
                                        </property>
                                        <property>
                                            <name>gherkin</name>
                                        </property>
                                        <property>
                                            <name>go</name>
                                        </property>
                                        <property>
                                            <name>shell</name>
                                        </property>
                                    </nestedProperties>
                                    <executions>
                                        <execution>
                                            <!-- Cache only the spotless:check goal -->
                                            <id>spotless-check</id>
                                            <outputs>
                                                <directories>
                                                    <directory>
                                                        <name>buildDir</name>
                                                    </directory>
                                                </directories>
                                                <cacheableBecause>Execution is CPU-bound and check should only run when inputs change
                                                </cacheableBecause>
                                            </outputs>
                                        </execution>
                                    </executions>
                                </plugin>
                            </plugins>
                        </develocity>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-enforcer-plugin</artifactId>
                    <version>3.6.3</version>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <configuration>
                    <inputEncoding>UTF-8</inputEncoding>
                    <outputEncoding>UTF-8</outputEncoding>
                    <generateReports>true</generateReports>
                    <asciidoc>
                        <attributes>
                            <icons>font</icons>
                            <source-highlighter>coderay</source-highlighter>
                            <coderay-css>style</coderay-css>
                        </attributes>
                    </asciidoc>
                </configuration>
                <dependencies>
                    <dependency><!-- add Asciidoctor Doxia Parser Module -->
                        <groupId>org.asciidoctor</groupId>
                        <artifactId>asciidoctor-converter-doxia-module</artifactId>
                        <version>3.2.0</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.maven.doxia</groupId>
                        <artifactId>doxia-site-renderer</artifactId>
                        <version>2.0.0</version>
                    </dependency>
                </dependencies>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.sonatype.central</groupId>
                <artifactId>central-publishing-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <publishingServerId>central</publishingServerId>
                    <autoPublish>true</autoPublish>
                    <waitUntil>published</waitUntil>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
                <configuration>
                    <retryFailedDeploymentCount>5</retryFailedDeploymentCount>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <configuration>
                    <tagNameFormat>v@{project.version}</tagNameFormat>
                    <releaseProfiles>release</releaseProfiles>
                    <preparationGoals>clean verify site:site</preparationGoals>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <configuration>
                    <sourceDirectories>
                        <sourceDirectory>src/main/java</sourceDirectory>
                    </sourceDirectories>
                    <configLocation>${checkstyle.config.dir.path}/checkstyle.xml</configLocation>
                    <propertyExpansion>config_loc=${checkstyle.config.dir.path}</propertyExpansion>
                    <consoleOutput>true</consoleOutput>
                    <failsOnError>true</failsOnError>
                    <failOnViolation>true</failOnViolation>
                    <linkXRef>false</linkXRef>
                    <maxAllowedViolations>1</maxAllowedViolations>
                </configuration>
                <executions>
                    <execution>
                        <id>checkstyle-check</id>
                        <phase>compile</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.diffplug.spotless</groupId>
                <artifactId>spotless-maven-plugin</artifactId>
                <configuration>
                    <formats>
                        <format>
                            <includes>
                                <include>src/main/**/package-info.java</include>
                                <include>src/main/**/module-info.java</include>
                            </includes>
                            <licenseHeader>
                                <file>${spotless.licenseHeader.path}</file>
                                <delimiter>/\*\*</delimiter>
                            </licenseHeader>
                        </format>
                    </formats>
                    <java>
                        <excludes>
                            <exclude>src/test/java/**/*.java</exclude>
                        </excludes>
                        <licenseHeader>
                            <file>${maven.multiModuleProjectDirectory}/config/spotless.license.java</file>
                        </licenseHeader>
                    </java>
                </configuration>
                <executions>
                    <execution>
                        <!-- Runs in compile phase to fail fast in case of formatting issues.-->
                        <id>spotless-check</id>
                        <phase>compile</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>prepare-agent</id>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>report</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>report</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <requireMavenVersion>
                                    <version>${maven.version}</version>
                                </requireMavenVersion>
                                <requireJavaVersion>
                                    <version>${jdk.version}</version>
                                </requireJavaVersion>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-plugin-report-plugin</artifactId>
                <configuration>
                    <hasExtensionsToLoad>true</hasExtensionsToLoad>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <linksource>true</linksource>
                    <minmemory>128m</minmemory>
                    <maxmemory>512</maxmemory>
                    <failOnError>false</failOnError>
                </configuration>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>aggregate</report>
                            <report>javadoc</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>ci-management</report>
                            <report>dependencies</report>
                            <report>dependency-info</report>
                            <report>issue-management</report>
                            <report>licenses</report>
                            <report>plugin-management</report>
                            <report>plugins</report>
                            <report>scm</report>
                            <report>summary</report>
                            <report>team</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>checkstyle</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
        </plugins>
    </reporting>

    <profiles>
        <profile>
            <id>release</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-sources</id>
                                <goals>
                                    <goal>jar-no-fork</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-javadocs</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                                <configuration>
                                    <passphraseEnvName>MAVEN_GPG_PASSPHRASE</passphraseEnvName>
                                    <gpgArguments>
                                        <arg>--pinentry-mode</arg>
                                        <arg>loopback</arg>
                                    </gpgArguments>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
