<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <!--maven of it info-->
    <modelVersion>4.0.0</modelVersion>
    <groupId>top.osjf</groupId>
    <artifactId>assembly</artifactId>
    <version>2.0.5</version>
    <packaging>pom</packaging>
    <name>assembly</name>
    <url>https://github.com/zpf9705/assembly</url>
    <modules>
        <module>assembly-simplified-sdk</module>
        <module>assembly-simplified-cron</module>
        <module>assembly-simplified-spring-optimize</module>
        <module>assembly-spring-boot-autoconfigure</module>
    </modules>
    <!--less description-->
    <description>
        Java related compartmentalization projects further encapsulate cumbersome tools or functions
        to gradually simplify their use. Using Java as a substrate and Spring related frameworks
        as assistance, component simplification development is carried out.
    </description>
    <!--apache License-->
    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
        </license>
    </licenses>
    <!--developer infos-->
    <developers>
        <developer>
            <id>12039-xpc-oks</id>
            <name>张鹏飞</name>
            <email>929160069@qq.com</email>
            <timezone>+8</timezone>
            <organization>Undetermined</organization>
            <roles>
                <role>Individual developer</role>
            </roles>
        </developer>
    </developers>
    <!--scm connection-->
    <scm>
        <connection>scm:git:https://github.com/zpf9705/assembly.git</connection>
        <developerConnection>scm:git:https://github.com/zpf9705/assembly.git</developerConnection>
        <url>https://github.com/zpf9705/assembly</url>
    </scm>
    <!--Need to rely on the version-->
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <java.version>1.8</java.version>
    </properties>
    <!--Jar package uploaded maven central warehouse address-->
    <distributionManagement>
        <snapshotRepository>
            <id>ossrh</id>
            <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
        <repository>
            <id>ossrh</id>
            <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
    </distributionManagement>
    <!--Upload the maven central repository configuration and plugins-->
    <profiles>
        <profile>
            <id>ossrh</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <version>2.9.1</version>
                        <executions>
                            <execution>
                                <id>attach-javadocs</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <javadocExecutable>${java.home}/../bin/javadoc</javadocExecutable>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-release-plugin</artifactId>
                        <version>2.5.3</version>
                        <configuration>
                            <autoVersionSubmodules>true</autoVersionSubmodules>
                            <useReleaseProfile>false</useReleaseProfile>
                            <releaseProfiles>ossrh</releaseProfiles>
                            <goals>deploy</goals>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-compiler-plugin</artifactId>
                        <version>2.5.1</version>
                        <configuration>
                            <source>${java.version}</source>
                            <target>${java.version}</target>
                            <encoding>${project.build.sourceEncoding}</encoding>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                        <version>2.2.1</version>
                        <executions>
                            <execution>
                                <id>attach-sources</id>
                                <goals>
                                    <goal>jar-no-fork</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>1.6</version>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>