<?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.jdcloud.jmsf</groupId>
  <artifactId>meshware-dependencies</artifactId>
  <version>1.4.0</version>
  <packaging>pom</packaging>
  <name>JMSF - MeshWare Dependencies</name>
  <description>JMSF meshware sdk dependencies for java</description>
  <url>https://www.jdcloud.com</url>
  <inceptionYear>2021</inceptionYear>
  <organization>
    <name>JMSF</name>
    <url>https://www.jdcloud.com</url>
  </organization>
  <licenses>
    <license>
      <name>Apache-2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
      <comments>Apache License Version 2.0</comments>
    </license>
  </licenses>
  <developers>
    <developer>
      <id>chenzhiguo</id>
      <name>Zhiguo.Chen</name>
      <organization>JDCloud</organization>
      <organizationUrl>https://www.jdcloud.com</organizationUrl>
    </developer>
  </developers>
  <scm>
    <connection>scm:git:https://github.com/jdcloud-jmsf/meshware-java.git</connection>
    <developerConnection>scm:git:https://github.com/jdcloud-jmsf/meshware-java.git</developerConnection>
    <tag>main</tag>
    <url>scm:git:https://github.com/jdcloud-jmsf</url>
  </scm>
  <distributionManagement>
    <snapshotRepository>
      <id>snapshots</id>
      <name>JD maven2 repository-snapshots</name>
      <url>http://artifactory.jd.com/libs-snapshots-local</url>
    </snapshotRepository>
  </distributionManagement>
  <properties>
    <consul.api.version>1.4.5</consul.api.version>
    <spring.version>5.3.31</spring.version>
    <lombok.version>1.18.30</lombok.version>
    <checkstyle.additional.suppressions.file>${maven.multiModuleProjectDirectory}/src/checkstyle/checkstyle-suppressions.xml</checkstyle.additional.suppressions.file>
    <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
    <grpc.version>1.58.0</grpc.version>
    <maven-dependency-plugin.version>3.3.0</maven-dependency-plugin.version>
    <gson.version>2.10.1</gson.version>
    <maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
    <maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
    <commons.collections4.version>4.4</commons.collections4.version>
    <puppycrawl-tools-checkstyle.version>8.45.1</puppycrawl-tools-checkstyle.version>
    <maven-source-plugin.version>3.0.1</maven-source-plugin.version>
    <slf4j.api.version>1.7.36</slf4j.api.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <resilience4j.version>1.7.1</resilience4j.version>
    <revision>1.4.0</revision>
    <maven.compiler.source>8</maven.compiler.source>
    <commons-pool.version>2.11.1</commons-pool.version>
    <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
    <sentinel.version>1.8.6</sentinel.version>
    <spring-cloud-build-checkstyle.branch>master</spring-cloud-build-checkstyle.branch>
    <joyrpc.version>1.4.7-RELEASE</joyrpc.version>
    <maven-versions-plugin.version>2.7</maven-versions-plugin.version>
    <meshware.cache.consul.version>0.1.3</meshware.cache.consul.version>
    <guava.version>32.1.3-jre</guava.version>
    <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
    <maven.compiler.target>8</maven.compiler.target>
    <maven-deploy-plugin.version>3.1.2</maven-deploy-plugin.version>
    <maven-release-plugin.version>2.5.3</maven-release-plugin.version>
    <protobuf.version>3.23.2</protobuf.version>
    <ttl.version>2.14.3</ttl.version>
    <maven-checkstyle-plugin.version>3.1.2</maven-checkstyle-plugin.version>
    <jdk.version>1.8</jdk.version>
    <checkstyle.suppressions.file>https://raw.githubusercontent.com/spring-cloud/spring-cloud-build/${spring-cloud-build-checkstyle.branch}/spring-cloud-build-tools/src/checkstyle/checkstyle-suppressions.xml</checkstyle.suppressions.file>
  </properties>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <version>${lombok.version}</version>
        <scope>compile</scope>
      </dependency>
      <dependency>
        <groupId>com.google.code.gson</groupId>
        <artifactId>gson</artifactId>
        <version>${gson.version}</version>
      </dependency>
      <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
        <version>${guava.version}</version>
      </dependency>
      <dependency>
        <groupId>io.meshware.cache</groupId>
        <artifactId>cache-ihc</artifactId>
        <version>${meshware.cache.consul.version}</version>
      </dependency>
      <dependency>
        <groupId>com.ecwid.consul</groupId>
        <artifactId>consul-api</artifactId>
        <version>${consul.api.version}</version>
      </dependency>
      <dependency>
        <groupId>io.joyrpc</groupId>
        <artifactId>joyrpc-extension-core</artifactId>
        <version>${joyrpc.version}</version>
      </dependency>
      <dependency>
        <groupId>io.joyrpc</groupId>
        <artifactId>joyrpc-extension-springboot</artifactId>
        <version>${joyrpc.version}</version>
      </dependency>
      <dependency>
        <groupId>com.jdcloud.jmsf</groupId>
        <artifactId>meshware-api</artifactId>
        <version>1.4.0</version>
      </dependency>
      <dependency>
        <groupId>com.jdcloud.jmsf</groupId>
        <artifactId>meshware-common</artifactId>
        <version>1.4.0</version>
      </dependency>
      <dependency>
        <groupId>com.jdcloud.jmsf</groupId>
        <artifactId>meshware-core</artifactId>
        <version>1.4.0</version>
      </dependency>
      <dependency>
        <groupId>com.jdcloud.jmsf</groupId>
        <artifactId>meshware-spring</artifactId>
        <version>1.4.0</version>
      </dependency>
      <dependency>
        <groupId>com.jdcloud.jmsf</groupId>
        <artifactId>meshware-registry-consul</artifactId>
        <version>1.4.0</version>
      </dependency>
      <dependency>
        <groupId>com.jdcloud.jmsf</groupId>
        <artifactId>dubbo-registry-consul</artifactId>
        <version>1.4.0</version>
      </dependency>
      <dependency>
        <groupId>com.jdcloud.jmsf</groupId>
        <artifactId>meshware-extension-dubbo2</artifactId>
        <version>1.4.0</version>
      </dependency>
      <dependency>
        <groupId>com.jdcloud.jmsf</groupId>
        <artifactId>meshware-extension-dubbo3</artifactId>
        <version>1.4.0</version>
      </dependency>
      <dependency>
        <groupId>com.jdcloud.jmsf</groupId>
        <artifactId>meshware-config-consul</artifactId>
        <version>1.4.0</version>
      </dependency>
      <dependency>
        <groupId>com.jdcloud.jmsf</groupId>
        <artifactId>meshware-config-strancer</artifactId>
        <version>1.4.0</version>
      </dependency>
      <dependency>
        <groupId>com.jdcloud.jmsf</groupId>
        <artifactId>meshware-config-k8s</artifactId>
        <version>1.4.0</version>
      </dependency>
      <dependency>
        <groupId>com.jdcloud.jmsf</groupId>
        <artifactId>meshware-config-k8s-sentinel</artifactId>
        <version>1.4.0</version>
      </dependency>
      <dependency>
        <groupId>com.jdcloud.jmsf</groupId>
        <artifactId>meshware-circuitbreaker-sentinel</artifactId>
        <version>1.4.0</version>
      </dependency>
      <dependency>
        <groupId>com.jdcloud.jmsf</groupId>
        <artifactId>meshware-ratelimiter-sentinel</artifactId>
        <version>1.4.0</version>
      </dependency>
      <dependency>
        <groupId>com.jdcloud.jmsf</groupId>
        <artifactId>meshware-trace-skywalking</artifactId>
        <version>1.4.0</version>
      </dependency>
      <dependency>
        <groupId>com.jdcloud.jmsf</groupId>
        <artifactId>meshware-trace-jaeger</artifactId>
        <version>1.4.0</version>
      </dependency>
      <dependency>
        <groupId>com.alibaba.csp</groupId>
        <artifactId>sentinel-core</artifactId>
        <version>${sentinel.version}</version>
      </dependency>
      <dependency>
        <groupId>com.alibaba.csp</groupId>
        <artifactId>sentinel-parameter-flow-control</artifactId>
        <version>${sentinel.version}</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>${slf4j.api.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-collections4</artifactId>
        <version>${commons.collections4.version}</version>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>${spring.version}</version>
      </dependency>
      <dependency>
        <groupId>com.alibaba</groupId>
        <artifactId>transmittable-thread-local</artifactId>
        <version>${ttl.version}</version>
      </dependency>
      <dependency>
        <groupId>io.grpc</groupId>
        <artifactId>grpc-protobuf</artifactId>
        <version>${grpc.version}</version>
      </dependency>
      <dependency>
        <groupId>io.grpc</groupId>
        <artifactId>grpc-stub</artifactId>
        <version>${grpc.version}</version>
      </dependency>
      <dependency>
        <groupId>io.grpc</groupId>
        <artifactId>grpc-netty-shaded</artifactId>
        <version>${grpc.version}</version>
      </dependency>
      <dependency>
        <groupId>io.grpc</groupId>
        <artifactId>grpc-core</artifactId>
        <version>${grpc.version}</version>
      </dependency>
      <dependency>
        <groupId>com.google.protobuf</groupId>
        <artifactId>protobuf-java</artifactId>
        <version>${protobuf.version}</version>
      </dependency>
      <dependency>
        <groupId>com.google.protobuf</groupId>
        <artifactId>protobuf-java-util</artifactId>
        <version>${protobuf.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-pool2</artifactId>
        <version>${commons-pool.version}</version>
      </dependency>
      <dependency>
        <groupId>io.github.resilience4j</groupId>
        <artifactId>resilience4j-circuitbreaker</artifactId>
        <version>${resilience4j.version}</version>
      </dependency>
      <dependency>
        <groupId>io.github.resilience4j</groupId>
        <artifactId>resilience4j-ratelimiter</artifactId>
        <version>${resilience4j.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <repositories>
    <repository>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <id>sonatype-nexus-snapshots</id>
      <name>Sonatype Nexus Snapshots</name>
      <url>https://oss.sonatype.org/content/groups/public/</url>
    </repository>
  </repositories>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-enforcer-plugin</artifactId>
        <version>1.2</version>
        <executions>
          <execution>
            <id>enforce-maven</id>
            <goals>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <rules>
                <requireMavenVersion>
                  <version>(,2.1.0),(2.1.0,2.2.0),(2.2.0,)</version>
                  <message>Maven 2.1.0 and 2.2.0 produce incorrect GPG signatures and checksums
                                        respectively.</message>
                </requireMavenVersion>
              </rules>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-release-plugin</artifactId>
        <version>2.5.3</version>
        <dependencies>
          <dependency>
            <groupId>org.apache.maven.scm</groupId>
            <artifactId>maven-scm-api</artifactId>
            <version>1.9.4</version>
          </dependency>
          <dependency>
            <groupId>org.apache.maven.scm</groupId>
            <artifactId>maven-scm-provider-gitexe</artifactId>
            <version>1.9.4</version>
          </dependency>
        </dependencies>
        <configuration>
          <useReleaseProfile>false</useReleaseProfile>
          <arguments>-P restricted-release,sonatype-oss-release,full</arguments>
          <autoVersionSubmodules>true</autoVersionSubmodules>
          <allowTimestampedSnapshots>false</allowTimestampedSnapshots>
          <tagNameFormat>${project.artifactId}-@{project.version}</tagNameFormat>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <version>1.2.5</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>sonatype-oss-release</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-deploy-plugin</artifactId>
            <version>${maven-deploy-plugin.version}</version>
          </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>
              <excludes>
                <exclude>com/jdcloud/**</exclude>
              </excludes>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>${maven-javadoc-plugin.version}</version>
            <executions>
              <execution>
                <phase>package</phase>
                <goals>
                  <goal>jar</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>
          </plugin>
          <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>${maven-compiler-plugin.version}</version>
            <configuration>
              <source>${jdk.version}</source>
              <target>${jdk.version}</target>
              <encoding>${project.build.sourceEncoding}</encoding>
              <compilerArgument>-parameters</compilerArgument>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-resources-plugin</artifactId>
            <version>${maven-resources-plugin.version}</version>
          </plugin>
          <plugin>
            <artifactId>maven-dependency-plugin</artifactId>
            <version>${maven-dependency-plugin.version}</version>
          </plugin>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>versions-maven-plugin</artifactId>
            <version>${maven-versions-plugin.version}</version>
            <configuration>
              <generateBackupPoms>false</generateBackupPoms>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-release-plugin</artifactId>
            <version>${maven-release-plugin.version}</version>
            <configuration>
              <mavenExecutorId>forked-path</mavenExecutorId>
              <useReleaseProfile>false</useReleaseProfile>
              <arguments>${arguments} -Psonatype-oss-release</arguments>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <distributionManagement>
        <repository>
          <id>jdcloud</id>
          <name>OSS Staging Repository</name>
          <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
        <snapshotRepository>
          <id>jdcloud</id>
          <name>OSS Snapshots Repository</name>
          <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
        </snapshotRepository>
      </distributionManagement>
      <properties>
        <os.detected.name>osx</os.detected.name>
        <os.detected.classifier>osx-aarch_64</os.detected.classifier>
        <os.detected.arch>aarch_64</os.detected.arch>
      </properties>
    </profile>
  </profiles>
</project>
