<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>tech.mgl</groupId>
        <artifactId>mgl-boot</artifactId>
        <version>3.0.1</version>
    </parent>
    <artifactId>mgl-boot-spring-boot-starter</artifactId>
    <name>mgl-boot-spring-boot-starter</name>
    <licenses>
        <license>
            <name>仅本人及本人所参与的任何产品和项目使用，不用于任何第三方应用</name>
            <url>www.mgl.tech</url>
            <distribution>repo</distribution>
            <comments>person license</comments>
        </license>
    </licenses>

    <scm>
        <tag>mgl</tag>
        <url>https://mgl.tech/p/mgl-base</url>
        <developerConnection>https://mgl.tech/p/mgl-base</developerConnection>
    </scm>
    <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>

    <developers>
        <developer>
            <id>hotpot</id>
            <name>hotpot</name>
            <email>hotpot@mgl.tech</email>
        </developer>
    </developers>
    <organization>
        <name>MGL技术社区</name>
        <url>https://www.mgl.tech/</url>
    </organization>
    <url>https://mgl.tech</url>

    <packaging>jar</packaging>
    <properties>
    </properties>
    <dependencies>
        <!--<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-autoconfigure</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <optional>true</optional>
        </dependency>

        <dependency>
            <groupId>tech.mgl</groupId>
            <artifactId>mgl-boot-exception</artifactId>
        </dependency>

        <dependency>
            <groupId>tech.mgl</groupId>
            <artifactId>mgl-boot-config</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.module</groupId>
            <artifactId>jackson-module-kotlin</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-reflect</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-stdlib-jdk8</artifactId>
            <scope>compile</scope>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>-->

        <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>
            <version>3.0.1</version>
        </dependency>

    </dependencies>

    <build>
        <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>17</source>
                    <target>17</target>
                    <encoding>UTF-8</encoding>
                    <!--<compilerArguments>
                        <verbose/>
                        <bootclasspath>${java.home}\jre\lib\rt.jar;${java.home}\jre\lib\jce.jar</bootclasspath>
                    </compilerArguments>-->
                    <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.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <archive>
                        <addMavenDescriptor>false</addMavenDescriptor>
                        <manifest>
                            <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                        </manifest>
                        <manifestEntries>
                            <Implementation-Build>${buildNumber}</Implementation-Build>
                            <!--<Automatic-Module-Name>mgl-boot-config</Automatic-Module-Name>-->
                        </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.springframework.boot</groupId>
                    <artifactId>spring-boot-maven-plugin</artifactId>
                    <configuration>
                        <classifier>exec</classifier>
                    </configuration>
                </plugin>-->
            <plugin>
                <groupId>org.jetbrains.kotlin</groupId>
                <artifactId>kotlin-maven-plugin</artifactId>
                <version>${kotlin.version}</version>
                <configuration>
                    <args>
                        <arg>-Xjsr305=strict</arg>
                    </args>
                    <compilerPlugins>
                        <plugin>spring</plugin>
                    </compilerPlugins>
                    <jvmTarget>${java.version}</jvmTarget>
                    <javaParameters>true</javaParameters>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>org.jetbrains.kotlin</groupId>
                        <artifactId>kotlin-maven-allopen</artifactId>
                        <version>${kotlin.version}</version>
                    </dependency>
                </dependencies>
            </plugin>
        </plugins>
    </build>

</project>
