<?xml version="1.0" encoding="UTF-8"?>
<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>
  <groupId>io.florianlopes</groupId>
  <artifactId>spring-mvc-test-utils-parent</artifactId>
  <version>4.0.0</version>
  <packaging>pom</packaging>
  <name>spring-mvc-test-utils-parent</name>
  <description>Spring MVC utils aimed to ease Spring MVC framework testing</description>
  <url>https://blog.florianlopes.io/tool-for-spring-mockmvcrequestbuilder-forms-tests/</url>
  <licenses>
    <license>
      <name>The Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>
  <developers>
    <developer>
      <name>Florian Lopes</name>
      <email>florian.lopes@outlook.com</email>
      <organization>Florian Lopes</organization>
      <organizationUrl>https://www.florianlopes.io</organizationUrl>
    </developer>
  </developers>
  <modules>
    <module>spring-mvc-test-utils</module>
  </modules>
  <scm>
    <connection>scm:git:git://github.com/f-lopes/spring-mvc-test-utils.git</connection>
    <developerConnection>scm:git:ssh://github.com/f-lopes/spring-mvc-test-utils.git</developerConnection>
    <url>https://github.com/f-lopes/spring-mvc-test-utils</url>
  </scm>
  <distributionManagement>
    <repository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
    <snapshotRepository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
  </distributionManagement>
  <properties>
    <jakarta.validation-api.version>3.1.0</jakarta.validation-api.version>
    <maven-source-plugin.version>3.3.1</maven-source-plugin.version>
    <sonar.host.url>https://sonarcloud.io</sonar.host.url>
    <slf4j-api.version>1.7.36</slf4j-api.version>
    <jakarta.servlet-api.version>6.1.0</jakarta.servlet-api.version>
    <maven-javadoc-plugin.version>3.10.0</maven-javadoc-plugin.version>
    <hibernate-validator.version>8.0.1.Final</hibernate-validator.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <jreleaser-maven-plugin.version>1.14.0</jreleaser-maven-plugin.version>
    <jakarta.el.version>4.0.2</jakarta.el.version>
    <spring-framework.version>6.1.13</spring-framework.version>
    <java.version>17</java.version>
    <versions-maven-plugin.version>2.17.1</versions-maven-plugin.version>
    <maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
    <jakarta.el-api.version>6.0.1</jakarta.el-api.version>
    <sonar.organization>f-lopes</sonar.organization>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <revision>4.0.0</revision>
    <spotbugs-maven-plugin.version>4.8.6.4</spotbugs-maven-plugin.version>
    <lombok.version>1.18.34</lombok.version>
    <maven-pmd-plugin.version>3.25.0</maven-pmd-plugin.version>
    <junit-jupiter.version>5.11.1</junit-jupiter.version>
    <maven-surefire-plugin.version>3.5.0</maven-surefire-plugin.version>
    <changelist>-SNAPSHOT</changelist>
    <logback-classic.version>1.5.7</logback-classic.version>
  </properties>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-framework-bom</artifactId>
        <version>${spring-framework.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
        <groupId>org.junit.jupiter</groupId>
        <artifactId>junit-jupiter</artifactId>
        <version>${junit-jupiter.version}</version>
        <scope>test</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>${maven-surefire-plugin.version}</version>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>versions-maven-plugin</artifactId>
        <version>${versions-maven-plugin.version}</version>
        <configuration>
          <generateBackupPoms>false</generateBackupPoms>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-pmd-plugin</artifactId>
        <version>${maven-pmd-plugin.version}</version>
        <executions>
          <execution>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <printFailingErrors>true</printFailingErrors>
          <analysisCache>true</analysisCache>
        </configuration>
      </plugin>
      <plugin>
        <groupId>com.github.spotbugs</groupId>
        <artifactId>spotbugs-maven-plugin</artifactId>
        <version>${spotbugs-maven-plugin.version}</version>
        <executions>
          <execution>
            <phase>verify</phase>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>com.rudikershaw.gitbuildhook</groupId>
        <artifactId>git-build-hook-maven-plugin</artifactId>
        <version>3.5.0</version>
        <executions>
          <execution>
            <goals>
              <goal>install</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <installHooks>
            <pre-commit>.git-hooks/pre-commit.sh</pre-commit>
          </installHooks>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <version>1.6.0</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>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>smoke-tests</id>
      <modules>
        <module>spring-mvc-test-utils</module>
        <module>smoke-tests</module>
      </modules>
    </profile>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>${maven-javadoc-plugin.version}</version>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
                <configuration>
                  <attach>true</attach>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-source-plugin</artifactId>
            <version>${maven-source-plugin.version}</version>
            <executions>
              <execution>
                <id>attach-sources</id>
                <goals>
                  <goal>jar</goal>
                </goals>
                <configuration>
                  <attach>true</attach>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.jreleaser</groupId>
            <artifactId>jreleaser-maven-plugin</artifactId>
            <version>${jreleaser-maven-plugin.version}</version>
            <configuration>
              <jreleaser>
                <signing>
                  <active>ALWAYS</active>
                  <armored>true</armored>
                </signing>
                <project>
                  <copyright>2024 Florian Lopes</copyright>
                </project>
                <deploy>
                  <maven>
                    <nexus2>
                      <maven-central>
                        <active>ALWAYS</active>
                        <url>https://oss.sonatype.org/service/local</url>
                        <snapshotUrl>https://s01.oss.sonatype.org/content/repositories/snapshots/</snapshotUrl>
                        <closeRepository>true</closeRepository>
                        <releaseRepository>false</releaseRepository>
                        <stagingRepositories>spring-mvc-test-utils/target/staging-deploy</stagingRepositories>
                      </maven-central>
                    </nexus2>
                  </maven>
                </deploy>
              </jreleaser>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <properties>
        <spotbugs.skip>true</spotbugs.skip>
        <altDeploymentRepository>local::file:./spring-mvc-test-utils/target/staging-deploy</altDeploymentRepository>
        <skipTests>true</skipTests>
        <pmd.skip>true</pmd.skip>
      </properties>
    </profile>
  </profiles>
</project>
