<?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.bpfaas</groupId>
  <artifactId>bps-config-server-novault-spring-cloud-starter</artifactId>
  <version>3.0.2.RELEASE</version>
  <name>bps-config-server-novault-spring-cloud-starter</name>
  <description>SpringCloud config server Starter.</description>
  <url>https://github.com/bpfaas/java-bps-config-spring-cloud-starter.git</url>
  <licenses>
    <license>
      <name>The MIT License</name>
      <url>https://opensource.org/licenses/mit/</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <developers>
    <developer>
      <id>brainpoint</id>
      <name>brainpoint</name>
      <email>bpoint.lee@live.com</email>
      <roles>
        <role>Developer</role>
      </roles>
      <timezone>+8</timezone>
    </developer>
  </developers>
  <scm>
    <connection>https://github.com/bpfaas/java-bps-config-spring-cloud-starter.git</connection>
    <url>https://github.com/bpfaas/java-bps-config-spring-cloud-starter.git</url>
  </scm>
  <properties>
    <lombok.version>1.18.12</lombok.version>
    <flatten-maven-plugin.version>1.2.2</flatten-maven-plugin.version>
    <changelist>.RELEASE</changelist>
    <repository.snapshotId>ossrh</repository.snapshotId>
    <repository.releaseUrl>https://oss.sonatype.org/service/local/staging/deploy/maven2/</repository.releaseUrl>
    <spring.boot.version>2.2.7.RELEASE</spring.boot.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <revision>3.0.2</revision>
    <maven.compiler.source>1.8</maven.compiler.source>
    <spring.cloud-starter.version>2.2.3.RELEASE</spring.cloud-starter.version>
    <repository.releaseId>ossrh</repository.releaseId>
    <java.version>1.8</java.version>
    <slf4j.version>1.7.30</slf4j.version>
    <febs.version>0.1.4</febs.version>
    <spring.cloud-starter-config.version>2.2.3.RELEASE</spring.cloud-starter-config.version>
    <maven.compiler.target>1.8</maven.compiler.target>
    <spring.cloud-bus.version>2.2.0.RELEASE</spring.cloud-bus.version>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <repository.snapshotUrl>https://oss.sonatype.org/content/repositories/snapshots/</repository.snapshotUrl>
  </properties>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.github.stefanbirkner</groupId>
      <artifactId>system-rules</artifactId>
      <version>1.16.0</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework.cloud</groupId>
      <artifactId>spring-cloud-starter-config</artifactId>
      <version>${spring.cloud-starter-config.version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-actuator</artifactId>
      <version>2.6.5</version>
    </dependency>
    <dependency>
      <groupId>org.springframework.cloud</groupId>
      <artifactId>spring-cloud-config-server</artifactId>
      <version>${spring.cloud-starter-config.version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework.cloud</groupId>
      <artifactId>spring-cloud-config-monitor</artifactId>
      <version>${spring.cloud-starter-config.version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework.cloud</groupId>
      <artifactId>spring-cloud-bus</artifactId>
      <version>${spring.cloud-bus.version}</version>
    </dependency>
    <dependency>
      <groupId>com.bpfaas</groupId>
      <artifactId>bpfaas-spring-cloud-starter-stream-rabbit</artifactId>
      <version>3.0.2.RELEASE</version>
    </dependency>
  </dependencies>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-clean-plugin</artifactId>
          <version>3.1.0</version>
        </plugin>
        <plugin>
          <artifactId>maven-resources-plugin</artifactId>
          <version>3.0.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.8.0</version>
        </plugin>
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.22.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
          <version>3.0.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-install-plugin</artifactId>
          <version>2.5.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-deploy-plugin</artifactId>
          <version>2.8.2</version>
        </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>
            <outputDirectory>target</outputDirectory>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-source-plugin</artifactId>
            <version>2.2.1</version>
            <executions>
              <execution>
                <phase>package</phase>
                <goals>
                  <goal>jar-no-fork</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>2.9.1</version>
            <executions>
              <execution>
                <phase>package</phase>
                <goals>
                  <goal>jar</goal>
                </goals>
                <configuration>
                  <tags>
                    <tag>
                      <name>date</name>
                    </tag>
                  </tags>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <tags>
                <tag>
                  <name>date</name>
                </tag>
              </tags>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.6</version>
            <executions>
              <execution>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
      <distributionManagement>
        <repository>
          <id>${repository.releaseId}</id>
          <url>${repository.releaseUrl}</url>
        </repository>
        <snapshotRepository>
          <id>${repository.snapshotId}</id>
          <url>{repository.snapshotUrl}</url>
        </snapshotRepository>
      </distributionManagement>
    </profile>
  </profiles>
</project>
