<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership.  The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.apache</groupId>
    <artifactId>apache</artifactId>
    <version>24</version>
    <relativePath></relativePath>
  </parent>
  <groupId>org.apache.yetus</groupId>
  <artifactId>yetus-project</artifactId>
  <version>0.15.1</version>
  <packaging>pom</packaging>
  <name>Apache Yetus Project</name>
  <description>Project-wide definitions for Apache Yetus</description>
  <url>https://yetus.apache.org</url>
  <inceptionYear>2015</inceptionYear>
  <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>
  <mailingLists>
    <mailingList>
      <name>Apache Yetus Dev List</name>
      <subscribe>dev-subscribe@yetus.apache.org</subscribe>
      <unsubscribe>dev-unsubscribe@yetus.apache.org</unsubscribe>
      <post>dev@yetus.apache.org</post>
      <archive>https://lists.apache.org/list.html?dev@yetus.apache.org</archive>
    </mailingList>
  </mailingLists>
  <modules>
    <module>yetus-assemblies</module>
    <module>audience-annotations-component</module>
    <module>yetus-maven-plugin</module>
    <module>precommit</module>
    <module>releasedocmaker</module>
    <module>shelldocs</module>
    <module>asf-site-src</module>
    <module>yetus-dist</module>
  </modules>
  <scm>
    <connection>scm:git:https://github.com/apache/yetus.git</connection>
    <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/yetus.git</developerConnection>
    <url>https://github.com/apache/yetus.git</url>
  </scm>
  <issueManagement>
    <system>JIRA</system>
    <url>https://issues.apache.org/jira/browse/YETUS</url>
  </issueManagement>
  <distributionManagement>
    <site>
      <id>Apache Yetus</id>
      <name>site</name>
      <url>https://yetus.apache.org/</url>
    </site>
  </distributionManagement>
  <properties>
    <flatten.version>1.6.0</flatten.version>
    <maven-checkstyle-plugin.version>3.5.0</maven-checkstyle-plugin.version>
    <jigsaw.avoidance>--add-exports=jdk.javadoc/jdk.javadoc.internal.tool=ALL-UNNAMED</jigsaw.avoidance>
    <maven-rat-plugin.version>0.16.1</maven-rat-plugin.version>
    <maven.compiler.source>11</maven.compiler.source>
    <maven-project-info-reports-plugin.version>3.9.0</maven-project-info-reports-plugin.version>
    <mockito.version>5.14.0</mockito.version>
    <sourceReleaseAssemblyDescriptor>source-release-tar</sourceReleaseAssemblyDescriptor>
    <spotbugs-maven-plugin.version>4.8.6.0</spotbugs-maven-plugin.version>
    <maven.plugin.validation>VERBOSE</maven.plugin.validation>
    <maven.plugin.api.version>3.8.2</maven.plugin.api.version>
    <maven.compiler.target>11</maven.compiler.target>
    <checkstyle.version>10.18.1</checkstyle.version>
    <maven-javadoc-plugin.version>3.7.0</maven-javadoc-plugin.version>
    <java.min.version>11</java.min.version>
    <project.build.outputTimestamp>n</project.build.outputTimestamp>
    <commons.io.version>2.17.0</commons.io.version>
    <junit.version>5.11.1</junit.version>
    <maven.api.version>3.8.2</maven.api.version>
    <maven.min.version>3.8.1</maven.min.version>
    <exec-maven-plugin.version>3.4.1</exec-maven-plugin.version>
  </properties>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>exec-maven-plugin</artifactId>
          <version>${exec-maven-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>com.github.spotbugs</groupId>
          <artifactId>spotbugs-maven-plugin</artifactId>
          <version>${spotbugs-maven-plugin.version}</version>
        </plugin>
        <plugin>
          <artifactId>maven-checkstyle-plugin</artifactId>
          <version>${maven-checkstyle-plugin.version}</version>
          <executions>
            <execution>
              <id>validate</id>
              <phase>validate</phase>
              <goals>
                <goal>check</goal>
              </goals>
              <configuration>
                <configLocation>checkstyle.xml</configLocation>
                <encoding>UTF-8</encoding>
                <consoleOutput>true</consoleOutput>
                <failsOnError>true</failsOnError>
                <linkXRef>false</linkXRef>
              </configuration>
            </execution>
          </executions>
          <dependencies>
            <dependency>
              <groupId>com.puppycrawl.tools</groupId>
              <artifactId>checkstyle</artifactId>
              <version>${checkstyle.version}</version>
            </dependency>
          </dependencies>
        </plugin>
        <plugin>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>${maven-javadoc-plugin.version}</version>
          <configuration>
            <notimestamp>true</notimestamp>
            <additionalOptions>${jigsaw.avoidance}</additionalOptions>
            <additionalJOption>-J${jigsaw.avoidance}</additionalJOption>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-clean-plugin</artifactId>
          <configuration>
            <failOnError>false</failOnError>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.10.1</version>
          <configuration>
            <compilerArgs>
              <arg>${jigsaw.avoidance}</arg>
            </compilerArgs>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.22.2</version>
          <configuration>
            <argLine>${jigsaw.avoidance}</argLine>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <version>${flatten.version}</version>
        <executions>
          <execution>
            <id>flatten</id>
            <phase>process-resources</phase>
            <goals>
              <goal>flatten</goal>
            </goals>
          </execution>
          <execution>
            <id>flatten.clean</id>
            <phase>clean</phase>
            <goals>
              <goal>clean</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <updatePomFile>true</updatePomFile>
          <flattenMode>resolveCiFriendliesOnly</flattenMode>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-enforcer-plugin</artifactId>
        <executions>
          <execution>
            <id>enforce</id>
            <goals>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <rules>
                <requireMavenVersion>
                  <version>[${maven.min.version},)</version>
                  <message>Maven is out of date.
  Yetus requires at least version ${maven.min.version} of Maven to properly build from source.
  You appear to be using an older version. You can use either "mvn -version" or
  "mvn enforcer:display-info" to verify what version is active.
  See the contributor guide on building for more information: ${project.url}/contribute/</message>
                </requireMavenVersion>
                <requireJavaVersion>
                  <version>[${java.min.version},)</version>
                  <message>Java is out of date.
  Yetus requires at least version ${java.min.version} of the JDK to properly build from source.
  You appear to be using an older version. You can use either "mvn -version" or
  "mvn enforcer:display-info" to verify what version is active.
  See the contributor guide on building for more information: ${project.url}/contribute/</message>
                </requireJavaVersion>
              </rules>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.rat</groupId>
        <artifactId>apache-rat-plugin</artifactId>
        <version>${maven-rat-plugin.version}</version>
        <configuration>
          <excludes>
            <exclude>.mvn/maven.config</exclude>
            <exclude>.gitattributes</exclude>
            <exclude>.codespellignorewords</exclude>
          </excludes>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <reporting>
    <plugins>
      <plugin>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <reportSets>
          <reportSet>
            <configuration>
              <skip>true</skip>
            </configuration>
          </reportSet>
        </reportSets>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <reportSets>
          <reportSet>
            <id>aggregate</id>
            <reports>
              <report>aggregate</report>
            </reports>
            <configuration>
              <maxmemory>1024m</maxmemory>
              <quiet>true</quiet>
              <verbose>false</verbose>
              <notimestamp>true</notimestamp>
              <source>${maven.compile.source}</source>
              <charset>${maven.compile.encoding}</charset>
              <reportOutputDirectory>${project.build.directory}/site</reportOutputDirectory>
              <destDir>documentation/in-progress/javadocs</destDir>
              <doclet>org.apache.yetus.audience.tools.ExcludePrivateAnnotationsStandardDoclet</doclet>
              <docletArtifacts>
                <docletArtifact>
                  <groupId>org.apache.yetus</groupId>
                  <artifactId>audience-annotations</artifactId>
                  <version>${project.version}</version>
                </docletArtifact>
              </docletArtifacts>
              <useStandardDocletOptions>true</useStandardDocletOptions>
              <includeDependencySources>false</includeDependencySources>
              <dependencySourceIncludes>
                <dependencySourceInclude>org.apache.yetus:audience-annotations</dependencySourceInclude>
              </dependencySourceIncludes>
            </configuration>
          </reportSet>
        </reportSets>
        <inherited>false</inherited>
      </plugin>
    </plugins>
  </reporting>
  <profiles>
    <profile>
      <id>gpg2</id>
      <activation />
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <configuration>
              <executable>gpg2</executable>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>
