<?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>com.minsait.onesait.bpo</groupId>
  <artifactId>piloto-reclamaciones-endesa-parent</artifactId>
  <version>1.1.0-RELEASE</version>
  <packaging>pom</packaging>
  <name>piloto-reclamaciones-endesa-parent</name>
  <modules>
    <module>modules/claims-manager</module>
    <module>modules/claims-config-init</module>
    <module>modules/claims-front-mocks</module>
    <module>modules/service-config</module>
    <module>modules/task-manager</module>
    <module>modules/documents-manager</module>
    <module>libraries/lib-bpm-manager</module>
    <module>libraries/lib-claim-datamodel</module>
    <module>libraries/lib-bpm-utils</module>
    <module>libraries/lib-keycloak-security</module>
  </modules>
  <properties>
    <com.fasterxml.jackson.core.version>2.15.2</com.fasterxml.jackson.core.version>
    <org.camunda.version>7.19.0</org.camunda.version>
    <org.jsoup.version>1.16.1</org.jsoup.version>
    <org.mapstruct.version>1.5.5.Final</org.mapstruct.version>
    <maven.compiler.source>17</maven.compiler.source>
    <org.json.version>20230227</org.json.version>
    <revision>1.0.0-RELEASE</revision>
    <com.sun.mai.version>1.6.2</com.sun.mai.version>
    <org.camunda.community.version>7.19.0</org.camunda.community.version>
    <lombok-mapstruct-binding.version>0.2.0</lombok-mapstruct-binding.version>
    <org.projectlombok.version>1.18.26</org.projectlombok.version>
    <org.hibernate.orm.version>6.2.2.Final</org.hibernate.orm.version>
    <spring-boot.version>3.1.0</spring-boot.version>
    <springdoc-openapi-ui.version>2.0.2</springdoc-openapi-ui.version>
    <org.postgresql.version>42.6.0</org.postgresql.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <license.dir>${basedir}</license.dir>
    <java.version>17</java.version>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <com.aspose.version>22.2</com.aspose.version>
    <maven.compiler.target>17</maven.compiler.target>
    <maven.deploy.skip>false</maven.deploy.skip>
  </properties>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>${spring-boot.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
        <groupId>org.springdoc</groupId>
        <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
        <version>${springdoc-openapi-ui.version}</version>
      </dependency>
      <dependency>
        <groupId>org.hibernate.orm</groupId>
        <artifactId>hibernate-core</artifactId>
        <version>${org.hibernate.orm.version}</version>
      </dependency>
      <dependency>
        <groupId>org.camunda.bpm.springboot</groupId>
        <artifactId>camunda-bpm-spring-boot-starter</artifactId>
        <version>${org.camunda.version}</version>
      </dependency>
      <dependency>
        <groupId>org.camunda.bpm.springboot</groupId>
        <artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
        <version>${org.camunda.version}</version>
      </dependency>
      <dependency>
        <groupId>org.postgresql</groupId>
        <artifactId>postgresql</artifactId>
        <version>${org.postgresql.version}</version>
      </dependency>
      <dependency>
        <groupId>org.camunda.community</groupId>
        <artifactId>camunda-engine-rest-client-openapi-java</artifactId>
        <version>${org.camunda.community.version}</version>
      </dependency>
      <dependency>
        <groupId>org.json</groupId>
        <artifactId>json</artifactId>
        <version>${org.json.version}</version>
      </dependency>
      <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <version>${org.projectlombok.version}</version>
      </dependency>
      <dependency>
        <groupId>org.mapstruct</groupId>
        <artifactId>mapstruct</artifactId>
        <version>${org.mapstruct.version}</version>
      </dependency>
      <dependency>
        <groupId>org.mapstruct</groupId>
        <artifactId>mapstruct-processor</artifactId>
        <version>${org.mapstruct.version}</version>
      </dependency>
      <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>${com.fasterxml.jackson.core.version}</version>
      </dependency>
      <dependency>
        <groupId>org.jsoup</groupId>
        <artifactId>jsoup</artifactId>
        <version>${org.jsoup.version}</version>
      </dependency>
      <dependency>
        <groupId>com.aspose</groupId>
        <artifactId>aspose-email</artifactId>
        <version>${com.aspose.version}</version>
        <classifier>jdk16</classifier>
      </dependency>
      <dependency>
        <groupId>com.sun.mail</groupId>
        <artifactId>javax.mail</artifactId>
        <version>${com.sun.mai.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <repositories>
    <repository>
      <id>onesait platform releases</id>
      <url>https://nexus.onesaitplatform.com/nexus/repository/releases/</url>
    </repository>
    <repository>
      <id>onesait platform snapshots</id>
      <url>https://nexus.onesaitplatform.com/nexus/repository/snapshots/</url>
    </repository>
    <repository>
      <id>central Maven</id>
      <url>https://repo1.maven.org</url>
    </repository>
    <repository>
      <id>jcenter</id>
      <url>https://jcenter.bintray.com/</url>
    </repository>
  </repositories>
  <build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <includes>
          <include>**/*.properties</include>
          <include>**/*.yml</include>
          <include>**/*.*</include>
        </includes>
      </resource>
    </resources>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.8.1</version>
          <configuration>
            <annotationProcessorPaths>
              <path>
                <groupId>org.mapstruct</groupId>
                <artifactId>mapstruct-processor</artifactId>
                <version>${org.mapstruct.version}</version>
              </path>
              <path>
                <groupId>org.projectlombok</groupId>
                <artifactId>lombok</artifactId>
                <version>${org.projectlombok.version}</version>
              </path>
              <path>
                <groupId>org.projectlombok</groupId>
                <artifactId>lombok-mapstruct-binding</artifactId>
                <version>${lombok-mapstruct-binding.version}</version>
              </path>
            </annotationProcessorPaths>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <version>3.1.0</version>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <version>1.1.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>
      <plugin>
        <groupId>com.mycila</groupId>
        <artifactId>license-maven-plugin</artifactId>
        <version>3.0</version>
        <executions>
          <execution>
            <phase>process-sources</phase>
            <goals>
              <goal>format</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <header>${license.dir}/LICENSE-code</header>
          <properties>
            <owner>Indra</owner>
            <email>onesaitplatform@minsait.com</email>
          </properties>
          <includes>
            <include>**/*.java</include>
          </includes>
          <excludes>
            <exclude>**/*.xml</exclude>
            <exclude>**/*.js</exclude>
            <exclude>**/*.css</exclude>
            <exclude>src/test/resources/**</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>license-maven-plugin</artifactId>
        <version>2.0.0</version>
        <executions>
          <execution>
            <id>default-cli</id>
            <configuration>
              <sortArtifactByName>true</sortArtifactByName>
              <useMissingFile>false</useMissingFile>
              <outputDirectory>${project.basedir}</outputDirectory>
              <thirdPartyFilename>THIRD-PARTY-LICENSES.txt</thirdPartyFilename>
              <excludedLicenses>License A|license B</excludedLicenses>
              <excludedGroups>com.minsait.onesait</excludedGroups>
              <licenseMerges>
                <licenseMerge>Apache License, Version 2.0|The Apache Software
									License, Version 2.0</licenseMerge>
                <licenseMerge>Apache License, Version 2.0|Apache Public License
									2|Apache Public License 2.|Apache License 2.0</licenseMerge>
                <licenseMerge>Apache License, Version 2.0|Apache Software
									License, version 2.0|Apache Software License - Version 2.0</licenseMerge>
                <licenseMerge>Apache License, Version 2.0|Apache 2|Apache
									2.0|Apache Software License, Version 2.0</licenseMerge>
                <licenseMerge>The BSD License|BSD</licenseMerge>
              </licenseMerges>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <reporting>
    <plugins>
      <plugin>
        <artifactId>maven-surefire-report-plugin</artifactId>
        <version>2.21.0</version>
      </plugin>
    </plugins>
  </reporting>
  <profiles>
    <profile>
      <id>releases</id>
      <activation />
      <distributionManagement>
        <repository>
          <id>releases</id>
          <url>https://nexus.onesaitplatform.com/nexus/repository/releases/</url>
        </repository>
      </distributionManagement>
    </profile>
  </profiles>
</project>
