<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://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>cn.hippo4j</groupId>
  <artifactId>hippo4j-all</artifactId>
  <version>1.5.0</version>
  <packaging>pom</packaging>
  <name>${project.artifactId}</name>
  <description>Dynamic observable thread pool framework</description>
  <url>https://github.com/opengoofy/hippo4j</url>
  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <developers>
    <developer>
      <name>chen.ma</name>
      <email>machen@apache.org</email>
      <url>https://github.com/magestacks</url>
    </developer>
    <developer>
      <name>shining-stars-lk</name>
      <email>1031900093@qq.com</email>
      <url>https://github.com/shining-stars-lk</url>
    </developer>
  </developers>
  <modules>
    <module>hippo4j-adapter</module>
    <module>hippo4j-common</module>
    <module>hippo4j-core</module>
    <module>hippo4j-example</module>
    <module>hippo4j-message</module>
    <module>hippo4j-monitor</module>
    <module>hippo4j-rpc</module>
    <module>hippo4j-server</module>
    <module>hippo4j-spring-boot</module>
  </modules>
  <scm>
    <connection>scm:git@github.com:opengoofy/hippo4j</connection>
    <developerConnection>scm:git@github.com:opengoofy/hippo4j.git</developerConnection>
    <url>git@github.com:opengoofy/hippo4j.git</url>
  </scm>
  <issueManagement>
    <system>Github Issue</system>
    <url>https://github.com/opengoofy/hippo4j/issues</url>
  </issueManagement>
  <distributionManagement>
    <repository>
      <id>ossrh</id>
      <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
    <snapshotRepository>
      <id>ossrh</id>
      <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
  </distributionManagement>
  <properties>
    <skip.spotless.apply>false</skip.spotless.apply>
    <jjwt.version>0.9.0</jjwt.version>
    <jetcd.version>0.7.3</jetcd.version>
    <maven.source.plugin.version>3.0.1</maven.source.plugin.version>
    <dubbo.version>3.0.5</dubbo.version>
    <tomcat-embed-core.version>9.0.55</tomcat-embed-core.version>
    <slf4j-api.version>1.7.7</slf4j-api.version>
    <dozer.version>6.5.0</dozer.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <consul.version>2.2.4.RELEASE</consul.version>
    <curator-framework.version>5.1.0</curator-framework.version>
    <netty.version>4.1.56.Final</netty.version>
    <maven.javadoc.plugin.version>3.0.0</maven.javadoc.plugin.version>
    <maven.javadoc.failOnError>false</maven.javadoc.failOnError>
    <h2.version>2.1.214</h2.version>
    <spring-boot.version>2.3.2.RELEASE</spring-boot.version>
    <spring-cloud-starter-stream-rocketmq.version>2.2.6.RELEASE</spring-cloud-starter-stream-rocketmq.version>
    <maven-source-plugin.version>2.4</maven-source-plugin.version>
    <skip.jacoco.plugin>true</skip.jacoco.plugin>
    <apollo.version>1.9.1</apollo.version>
    <mybatis-plus.version>3.4.2</mybatis-plus.version>
    <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
    <jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
    <polaris.version>1.7.2</polaris.version>
    <spring-cloud-starter-netflix-hystrix.version>2.2.9.RELEASE</spring-cloud-starter-netflix-hystrix.version>
    <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
    <skip.checkstyle.check>true</skip.checkstyle.check>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <license-maven-plugin.version>3.0</license-maven-plugin.version>
    <maven.compiler.plugin.version>3.6.1</maven.compiler.plugin.version>
    <maven-checkstyle-plugin.version>3.1.0</maven-checkstyle-plugin.version>
    <maven.jar.plugin.version>3.0.2</maven.jar.plugin.version>
    <alibaba-dubbo.version>2.6.12</alibaba-dubbo.version>
    <spotless-maven-plugin.version>2.22.1</spotless-maven-plugin.version>
    <maven-javadoc-plugin.version>3.0.0-M1</maven-javadoc-plugin.version>
    <hibernate-validator.version>6.1.5.Final</hibernate-validator.version>
    <skip.maven.gpg.plugin>false</skip.maven.gpg.plugin>
    <java.version>1.8</java.version>
    <micrometer-core.version>1.8.4</micrometer-core.version>
    <spring-cloud-starter-alibaba-nacos-config.version>2.2.5.RELEASE</spring-cloud-starter-alibaba-nacos-config.version>
    <elasticsearch.version>6.8.17</elasticsearch.version>
    <flatten-maven-plugin.version>1.1.0</flatten-maven-plugin.version>
    <jackson-bom.version>2.11.1</jackson-bom.version>
    <spring-cloud-starter-stream-rabbitmq.version>3.1.0</spring-cloud-starter-stream-rabbitmq.version>
    <nacos-client.version>2.0.4</nacos-client.version>
    <rocketmq.version>2.2.2</rocketmq.version>
    <caffeine.version>2.9.3</caffeine.version>
    <revision>1.5.0</revision>
  </properties>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-dependencies</artifactId>
        <version>${spring-boot.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
        <groupId>com.baomidou</groupId>
        <artifactId>mybatis-plus-boot-starter</artifactId>
        <version>${mybatis-plus.version}</version>
      </dependency>
      <dependency>
        <groupId>com.github.dozermapper</groupId>
        <artifactId>dozer-core</artifactId>
        <version>${dozer.version}</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>${slf4j-api.version}</version>
      </dependency>
      <dependency>
        <groupId>io.netty</groupId>
        <artifactId>netty-all</artifactId>
        <version>${netty.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <build>
    <finalName>${project.artifactId}</finalName>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>${maven.compiler.plugin.version}</version>
        <configuration>
          <source>${java.version}</source>
          <target>${java.version}</target>
          <encoding>${project.build.sourceEncoding}</encoding>
          <compilerArgument>-Xlint:unchecked</compilerArgument>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifestEntries>
              <Implementation-Title>${project.artifactId}</Implementation-Title>
              <Implementation-Version>${project.version}</Implementation-Version>
              <Build-Time>${maven.build.timestamp}</Build-Time>
              <Built-By>chen.ma</Built-By>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <version>${flatten-maven-plugin.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>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <version>${spring-boot.version}</version>
        <executions>
          <execution>
            <goals>
              <goal>build-info</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-gpg-plugin</artifactId>
        <version>${maven-gpg-plugin.version}</version>
        <executions>
          <execution>
            <phase>verify</phase>
            <goals>
              <goal>sign</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <skip>${skip.maven.gpg.plugin}</skip>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>${maven-javadoc-plugin.version}</version>
        <executions>
          <execution>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <additionalparam>${javadoc.opts}</additionalparam>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <version>${maven-source-plugin.version}</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <attach>true</attach>
        </configuration>
      </plugin>
      <plugin>
        <groupId>com.diffplug.spotless</groupId>
        <artifactId>spotless-maven-plugin</artifactId>
        <version>${spotless-maven-plugin.version}</version>
        <executions>
          <execution>
            <phase>compile</phase>
            <goals>
              <goal>apply</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <applySkip>${skip.spotless.apply}</applySkip>
          <java>
            <eclipse>
              <file>${maven.multiModuleProjectDirectory}/dev-support/hippo4j_spotless_formatter.xml</file>
            </eclipse>
            <licenseHeader>
              <file>${maven.multiModuleProjectDirectory}/dev-support/license-header</file>
            </licenseHeader>
          </java>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <version>${maven-checkstyle-plugin.version}</version>
        <executions>
          <execution>
            <id>validate</id>
            <phase>validate</phase>
            <goals>
              <goal>checkstyle</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <configLocation>${maven.multiModuleProjectDirectory}/dev-support/hippo4j_checkstyle.xml</configLocation>
          <suppressionsLocation>${maven.multiModuleProjectDirectory}/dev-support/hippo4j_checkstyle_suppression.xml</suppressionsLocation>
          <includeTestSourceDirectory>false</includeTestSourceDirectory>
          <consoleOutput>true</consoleOutput>
          <encoding>UTF-8</encoding>
          <skip>${skip.checkstyle.check}</skip>
          <violationSeverity>error</violationSeverity>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <version>${jacoco-maven-plugin.version}</version>
        <executions>
          <execution>
            <goals>
              <goal>prepare-agent</goal>
            </goals>
          </execution>
          <execution>
            <id>report</id>
            <phase>test</phase>
            <goals>
              <goal>report</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <skip>${skip.jacoco.plugin}</skip>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>disable-javadoc-doclint</id>
      <activation>
        <jdk>[1.8,)</jdk>
      </activation>
      <properties>
        <javadoc.opts>-Xdoclint:none</javadoc.opts>
      </properties>
    </profile>
  </profiles>
</project>
