<?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>
  <parent>
    <groupId>tech.mgl</groupId>
    <artifactId>mgl-boot</artifactId>
    <version>3.1.6</version>
  </parent>
  <groupId>tech.mgl</groupId>
  <artifactId>mgl-boot-spring-boot-starter</artifactId>
  <version>3.1.6</version>
  <name>mgl-boot-spring-boot-starter</name>
  <description>THIS FILE IS PART OF MGL PROJECT MGL.tech
        - The core part of the reboot library （文件名和作用概述）
        Copyright (c) 1989-2016 MGL.tech
        Copyright (c) 2016 MGL.TECH
        任何网站未经本公司授权，不得盗用本站所有资源及所有代码否则追究法律责任
        任何网站未经本公司授权，任何人不得作全部或部分复制或仿造否则追究法律责任</description>
  <url>https://mgl.tech</url>
  <organization>
    <name>MGL技术社区</name>
    <url>https://mgl.tech/</url>
  </organization>
  <licenses>
    <license>
      <name>仅本人及本人所参与的任何产品和项目使用，不用于任何第三方应用</name>
      <url>mgl.tech</url>
      <distribution>repo</distribution>
      <comments>person license</comments>
    </license>
  </licenses>
  <developers>
    <developer>
      <id>hotpot</id>
      <name>hotpot</name>
      <email>hotpot@mgl.tech</email>
    </developer>
  </developers>
  <scm>
    <developerConnection>https://mgl.tech/p/mgl-base</developerConnection>
    <tag>mgl</tag>
    <url>https://mgl.tech/p/mgl-base</url>
  </scm>
  <dependencies>
    <dependency>
      <groupId>tech.mgl</groupId>
      <artifactId>mgl-boot-config</artifactId>
    </dependency>
    <dependency>
      <groupId>tech.mgl</groupId>
      <artifactId>mgl-boot-exception</artifactId>
    </dependency>
    <dependency>
      <groupId>tech.mgl</groupId>
      <artifactId>mgl-boot-spring-boot-autoconfigure</artifactId>
    </dependency>
  </dependencies>
  <build>
    <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <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>
          <outputDirectory>target</outputDirectory>
          <flattenMode>resolveCiFriendliesOnly</flattenMode>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>${java.version}</source>
          <target>${java.version}</target>
          <encoding>${project.encode}</encoding>
          <excludes>
            <exclude>application.properties</exclude>
            <exclude>templates</exclude>
            <exclude>static</exclude>
            <exclude>*.yml</exclude>
            <exclude>*.xml</exclude>
            <exclude>pom.xml</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <id>dokka-jar</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <classifier>javadoc</classifier>
              <skipIfEmpty>true</skipIfEmpty>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <archive>
            <addMavenDescriptor>false</addMavenDescriptor>
            <manifest>
              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
            </manifest>
            <manifestEntries>
              <Implementation-Build>${buildNumber}</Implementation-Build>
            </manifestEntries>
          </archive>
          <excludes>
            <exclude>application.properties</exclude>
            <exclude>templates</exclude>
            <exclude>static</exclude>
            <exclude>*.yml</exclude>
            <exclude>*.xml</exclude>
            <exclude>**/pom.xml</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.jetbrains.kotlin</groupId>
        <artifactId>kotlin-maven-plugin</artifactId>
        <version>${kotlin.version}</version>
        <dependencies>
          <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-maven-allopen</artifactId>
            <version>${kotlin.version}</version>
          </dependency>
        </dependencies>
        <configuration>
          <args>
            <arg>-Xjsr305=strict</arg>
          </args>
          <compilerPlugins>
            <plugin>spring</plugin>
          </compilerPlugins>
          <jvmTarget>${java.version}</jvmTarget>
          <javaParameters>true</javaParameters>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-javadoc</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <charset>UTF-8</charset>
          <encoding>UTF-8</encoding>
          <docencoding>UTF-8</docencoding>
          <failOnError>false</failOnError>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <version>3.3.0</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <excludes>**/tech/**</excludes>
          <excludeResources>false</excludeResources>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
