<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">

    <modelVersion>4.0.0</modelVersion>

    <!-- project coordinates -->
    <groupId>cc.renken</groupId>
	<artifactId>parent</artifactId>
	<version>1.1.2</version>
    <packaging>pom</packaging>

	<name>${project.groupId}:${project.artifactId}</name>
	<description>The cc.renken parent pom.</description>
	<url>https://gitlab.com/funsheep/parent</url>

	<licenses>
		<license>
			<name>Mozilla Public License Version 2.0</name>
			<url>https://www.mozilla.org/media/MPL/2.0/index.txt</url>
		</license>
	</licenses>
	<issueManagement>
		<url>https://gitlab.com/funsheep/parent/issues</url>
		<system>Gitlab</system>
	</issueManagement>
	<scm>
		<connection>scm:git:git://gitlab.com/funsheep/parent.git</connection>
		<developerConnection>scm:git:https://gitlab.com/funsheep/parent.git</developerConnection>
		<url>https://gitlab.com/funsheep/parent/tree/develop</url>
	</scm>
	<developers>
		<developer>
			<name>Hendrik Renken</name>
			<email>hendrik@renken.cc</email>
			<organization>cc.renken</organization>
			<organizationUrl>https://gitlab.com/funsheep/</organizationUrl>
		</developer>
	</developers>

	<properties>
	<!-- Dependency Versions -->
		<slf4j-api.version>1.7.26</slf4j-api.version>
		<log4j-slf4j-impl.version>2.11.2</log4j-slf4j-impl.version>
		<junit.version>4.11</junit.version>
	
	<!-- Project Properties -->
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

		<maven.compiler.source>1.8</maven.compiler.source>
		<maven.compiler.target>1.8</maven.compiler.target>

		<!-- https://issues.apache.org/jira/browse/MRESOURCES-99 -->
		<maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
		<current.timestamp>${maven.build.timestamp}</current.timestamp>
		
	<!-- Build Pipeline Plugin Versions -->
		<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
		<jgitflow-maven-plugin.version>1.0-m5.1</jgitflow-maven-plugin.version>
		<mavanagaiata.version>0.9.4</mavanagaiata.version>
		<maven-javadoc-plugin.version>3.0.1</maven-javadoc-plugin.version>
		<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
		<maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
		<maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
		<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
		<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
	</properties>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-api</artifactId>
				<version>${slf4j-api.version}</version>
			</dependency>
		
			<dependency>
				<groupId>org.apache.logging.log4j</groupId>
				<artifactId>log4j-slf4j-impl</artifactId>
				<version>${log4j-slf4j-impl.version}</version>
				<scope>test</scope>
			</dependency>

			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
				<version>${junit.version}</version>
				<scope>test</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<build>
		<resources>
			<!-- the resource VERSION file stores build information -->
			<!-- these information are set during the build -->
			<resource>
				<directory>src/main/templates</directory>
				<filtering>true</filtering>
				<includes>
					<include>VERSION</include>
				</includes>
			</resource>
			<resource>
				<directory>src/main/resources</directory>
				<filtering>false</filtering>
			</resource>
		</resources>
		<pluginManagement>
			<plugins>
		        <plugin>
            		<groupId>org.apache.maven.plugins</groupId>
           			<artifactId>maven-compiler-plugin</artifactId>
        		    <version>${maven-compiler-plugin.version}</version>
		        </plugin>
				<plugin>
					<groupId>com.github.koraktor</groupId>
					<artifactId>mavanagaiata</artifactId>
					<version>${mavanagaiata.version}</version>
					<configuration>
						<skipNoGit>true</skipNoGit>
					</configuration>
					<executions>
						<execution>
							<phase>validate</phase>
							<goals>
								<goal>commit</goal>
								<goal>branch</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
				<!-- FIXME does not generate javadoc zip -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-javadoc-plugin</artifactId>
					<version>${maven-javadoc-plugin.version}</version>
					<executions>
						<execution>
							<id>attach-javadocs</id>
							<goals>
								<goal>jar</goal>
							</goals>
							<configuration>
								<doclint>none</doclint>
							</configuration>
						</execution>
					</executions>
				</plugin>
				<!-- FIXME sources are not attached to package -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-source-plugin</artifactId>
					<version>${maven-source-plugin.version}</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-jar-plugin</artifactId>
					<version>${maven-jar-plugin.version}</version>
				</plugin>
			</plugins>
		</pluginManagement>
		<plugins>
			<plugin>
				<groupId>external.atlassian.jgitflow</groupId>
				<artifactId>jgitflow-maven-plugin</artifactId>
				<version>${jgitflow-maven-plugin.version}</version>
				<configuration>
					<noReleaseBuild>true</noReleaseBuild>
					<noHotfixBuild>true</noHotfixBuild>
					<noFeatureBuild>true</noFeatureBuild>
					<noTag>true</noTag>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-gpg-plugin</artifactId>
				<version>${maven-gpg-plugin.version}</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-resources-plugin</artifactId>
				<version>${maven-resources-plugin.version}</version>
			</plugin>
			<plugin>
				<groupId>org.sonatype.plugins</groupId>
				<artifactId>nexus-staging-maven-plugin</artifactId>
				<version>${nexus-staging-maven-plugin.version}</version>
				<extensions>true</extensions>
				<configuration>
					<serverId>ossrh</serverId>
					<nexusUrl>https://oss.sonatype.org/</nexusUrl>
					<autoReleaseAfterClose>true</autoReleaseAfterClose>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<distributionManagement>
		<snapshotRepository>
			<id>ossrh</id>
			<url>https://oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
		<repository>
			<id>ossrh</id>
			<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
		</repository>
	</distributionManagement>


</project>
