<?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/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<packaging>pom</packaging>

	<groupId>com.github.hfhn</groupId>
	<artifactId>hntool-parent</artifactId>
	<version>1.0.0</version>
	<name>hntool</name>
	<description>hntool 工具类</description>
	<url>https://github.com/hfhn/hntool</url>

	<modules>
		<module>hntool-all</module>
		<module>hntool-sms</module>
		<module>hntool-upload</module>
		<module>hntool-push</module>
		<module>hntool-robot</module>
		<module>hntool-im</module>
		<module>hntool-core</module>
	</modules>

	<!-- 发布管理信息 -->
	<distributionManagement>
		<snapshotRepository>
			<!-- 这里的id必须要和全局配置中的release id 一致 -->
			<id>sonatype-nexus-snapshots</id>
			<!-- 这里就是在创建issue成功后，对方回复的release发布地址-->
			<url>https://oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
		<repository>
			<id>sonatype-nexus-staging</id>
			<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
		</repository>
	</distributionManagement>

	<properties>
		<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>utf-8</project.reporting.outputEncoding>

		<!-- versions -->
		<compile.version>8</compile.version>
		<junit.version>4.13</junit.version>
		<lombok.version>1.18.12</lombok.version>
		<hutool.version>5.1.3</hutool.version>
	</properties>

	<dependencies>
		<!-- 全局单元测试 -->
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>${junit.version}</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    <scm>
        <tag>master</tag>
        <url>https://github.com/hfhn/hntool</url>
        <connection>https://github.com/hfhn/hntool.git</connection>
        <developerConnection>https://github.com/hfhn</developerConnection>
    </scm>

    <developers>
        <developer>
            <name>hfhn</name>
            <email>shilvfei@dingtalk.com</email>
            <url>https://github.com/hfhn</url>
        </developer>
    </developers>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.8.1</version>
				<configuration>
					<source>${compile.version}</source>
					<target>${compile.version}</target>
				</configuration>
			</plugin>
			<!-- Javadoc -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>3.1.1</version>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

	<profiles>
		<profile>
			<id>ossrh</id>
			<build>
				<plugins>
					<!-- 生成java source.jar -->
					<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</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<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>
					</plugin>
					<!-- 生成 asc 校验文件 -->
					<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>

					<!-- <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <configuration>
                             <skip>true</skip>
                         </configuration>
                     </plugin>-->

				</plugins>
			</build>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>

			<properties>
				<gpg.executable>gpg</gpg.executable>
				<gpg.passphrase>haoniu888</gpg.passphrase>
			</properties>
		</profile>
	</profiles>

</project>
