<?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">
	<modelVersion>4.0.0</modelVersion>

	<groupId>at.reilaender.asciidoctorj.bootconfig2adoc</groupId>
	<artifactId>bootconfig2adoc</artifactId>
	<version>0.1.2</version>
	<packaging>pom</packaging>

	<name>BootConfig2adoc</name>
	<description>Spring-Boot-Configuration to AsciiDoc: AsciiDoctorJ-Extension to embed Spring-Boot configuration metadata files in AsciiDoc documents.</description>

	<url>https://gitlab.com/mreilaender/bootconfig2adoc</url>
	<inceptionYear>2019</inceptionYear>

	<licenses>
		<license>
			<name>Apache License, Version 2.0</name>
			<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
			<comments>A business-friendly OSS license</comments>
		</license>
	</licenses>

	<developers>
		<developer>
			<id>RalphEng</id>
			<name>Ralph Engelmann</name>
			<email>ralph@rshc.de</email>
			<url>https://gitlab.com/RalphEng</url>
			<properties>
				<picUrl>https://www.humanfork.de/images/ralph-avatar.png</picUrl>
			</properties>
		</developer>
		<developer>
			<id>mreilaender</id>
			<name>Manuel Reiländer</name>
			<email>manuel.reilaender@gmail.com</email>
			<url>https://gitlab.com/mreilaender</url>
			<properties>
				<picUrl>https://gitlab.com/uploads/-/system/user/avatar/3062905/avatar.png?width=400</picUrl>
			</properties>
		</developer>
	</developers>

	<modules>
		<module>bootconfig2adoc-bom</module>
		<module>bootconfig2adoc-libdef</module>
		<module>bootconfig2adoc-core</module>
		<module>bootconfig2adoc-adoc</module>
		<module>bootconfig2adoc-it</module>
		<module>bootconfig2adoc-testutil</module>
	</modules>

	<scm>
		<connection>scm:git:https://gitlab.com/mreilaender/bootconfig2adoc.git</connection>
		<developerConnection>scm:git:git@gitlab.com:mreilaender/bootconfig2adoc.git</developerConnection>
		<url>https://gitlab.com/mreilaender/bootconfig2adoc</url>
		<tag>HEAD</tag>
	</scm>

	<issueManagement>
		<system>GitLab</system>
		<url>https://gitlab.com/mreilaender/bootconfig2adoc/-/issues</url>
	</issueManagement>

	<ciManagement>
		<system>GitLab CI/CD</system>
		<url>https://gitlab.com/mreilaender/bootconfig2adoc/-/pipelines</url>
	</ciManagement>

	<distributionManagement>
		<snapshotRepository>
			<id>ossrh</id>
			<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
	</distributionManagement>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<java.version>1.8</java.version>

		<asciidoctorj.version>2.5.1</asciidoctorj.version>
		<asciidoctorj-pdf.version>1.6.0</asciidoctorj-pdf.version>
		<asciidoctorj-diagram.version>2.1.2</asciidoctorj-diagram.version>

		<springboot.version>2.1.2.RELEASE</springboot.version>
		<spring.version>5.3.8</spring.version>
	</properties>

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-antrun-plugin</artifactId>
					<version>1.8</version>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-assembly-plugin</artifactId>
					<version>3.1.1</version>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-clean-plugin</artifactId>
					<version>3.1.0</version>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-dependency-plugin</artifactId>
					<version>3.1.1</version>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-site-plugin</artifactId>
					<version>3.7.1</version>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-resources-plugin</artifactId>
					<version>3.1.0</version>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>3.8.0</version>
					<configuration>
						<source>${java.version}</source>
						<target>${java.version}</target>
					</configuration>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>2.22.1</version>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-source-plugin</artifactId>
					<version>3.0.1</version>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-jar-plugin</artifactId>
					<version>3.1.1</version>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-install-plugin</artifactId>
					<version>2.5.2</version>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-javadoc-plugin</artifactId>
					<version>3.1.0</version>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-deploy-plugin</artifactId>
					<version>2.8.2</version>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-release-plugin</artifactId>
					<version>2.5.3</version>
					<configuration>
						<releaseProfiles>release</releaseProfiles>
					</configuration>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-gpg-plugin</artifactId>
					<version>3.0.1</version>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-enforcer-plugin</artifactId>
					<version>3.0.0-M2</version>
				</plugin>

				<plugin>
					<!-- https://github.com/asciidoctor/asciidoctor-maven-plugin/releases -->
					<groupId>org.asciidoctor</groupId>
					<artifactId>asciidoctor-maven-plugin</artifactId>
					<version>2.1.0</version>
				</plugin>

				<plugin>
					<groupId>com.github.ekryd.sortpom</groupId>
					<artifactId>sortpom-maven-plugin</artifactId>
					<version>2.10.0</version>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-source-plugin</artifactId>
					<version>3.2.1</version>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-javadoc-plugin</artifactId>
					<version>3.3.1</version>
				</plugin>

				<plugin>
					<groupId>org.sonatype.plugins</groupId>
					<artifactId>nexus-staging-maven-plugin</artifactId>
					<version>1.6.8</version>
				</plugin>
			</plugins>
		</pluginManagement>

		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-enforcer-plugin</artifactId>
				<executions>
					<execution>
						<id>enforce-maven</id>
						<goals>
							<goal>enforce</goal>
						</goals>
						<configuration>
							<rules>
								<requireMavenVersion>
									<version>3.6</version>
								</requireMavenVersion>
							</rules>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-site-plugin</artifactId>
				<configuration>
					<skipDeploy>true</skipDeploy>
				</configuration>
			</plugin>

			<plugin>
				<groupId>com.github.ekryd.sortpom</groupId>
				<artifactId>sortpom-maven-plugin</artifactId>
				<configuration>
					<sortOrderFile>src/maven/pomStyle.xml</sortOrderFile>
					<encoding>UTF-8</encoding>
					<sortProperties>false</sortProperties>
					<expandEmptyElements>false</expandEmptyElements>
					<!-- use the system file encoding, git will "normalize" it -->
					<keepBlankLines>true</keepBlankLines>
					<!-- nrOfIndentSpace=-1 indicates that a tab character should be used -->
					<nrOfIndentSpace>-1</nrOfIndentSpace>
					<createBackupFile>false</createBackupFile>
				</configuration>
			</plugin>

			<plugin>
				<!-- https://github.com/asciidoctor/asciidoctor-maven-plugin/releases -->
				<groupId>org.asciidoctor</groupId>
				<artifactId>asciidoctor-maven-plugin</artifactId>
				<executions>
					<execution>
						<id>doc-adoc2pdf</id>
						<!-- phase must been after compile -->
						<phase>pre-site</phase>
						<goals>
							<goal>process-asciidoc</goal>
						</goals>
						<inherited>false</inherited>
						<configuration>
							<backend>pdf</backend>
							<doctype>article</doctype>

							<sourceDirectory>src/doc/asciidoc</sourceDirectory>
							<outputDirectory>${project.build.directory}/site/doc/asciidoc/pdf</outputDirectory>
							<!--
								This is needed because the diagram output is stored in that directory.
							-->
							<imagesDir>${project.build.directory}/generated-docs</imagesDir>

							<sourceHighlighter>coderay</sourceHighlighter>
							<requires>
								<require>asciidoctor-diagram</require>
							</requires>

							<attributes>
								<icons>font</icons>
								<sectanchors>true</sectanchors>
								<buildTargetDir-config>${project.build.directory}</buildTargetDir-config>
							</attributes>
						</configuration>
					</execution>
				</executions>

				<dependencies>
					<dependency>
						<groupId>org.asciidoctor</groupId>
						<artifactId>asciidoctorj-pdf</artifactId>
						<version>${asciidoctorj-pdf.version}</version>
					</dependency>

					<dependency>
						<groupId>org.asciidoctor</groupId>
						<artifactId>asciidoctorj-diagram</artifactId>
						<version>${asciidoctorj-diagram.version}</version>
					</dependency>
				</dependencies>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<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-javadoc-plugin</artifactId>
				<executions>
					<execution>
						<id>attach-javadocs</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.sonatype.plugins</groupId>
				<artifactId>nexus-staging-maven-plugin</artifactId>
				<extensions>true</extensions>
				<configuration>
					<serverId>ossrh</serverId>
					<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
					<autoReleaseAfterClose>true</autoReleaseAfterClose>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-gpg-plugin</artifactId>
				<executions>
					<execution>
						<id>sign-artifacts</id>
						<phase>verify</phase>
						<goals>
							<goal>sign</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

	<reporting>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-project-info-reports-plugin</artifactId>
				<version>3.0.0</version>
				<reportSets>
					<!-- different report sets, the second one is just for the parent -->
					<reportSet>
						<id>project-info-report-every-module-first-part</id>
						<reports>
							<!--
							the parent module has its own "About" page and menu item 
							<report>index</report>
							 -->
						</reports>
					</reportSet>
					<reportSet>
						<id>project-info-report-parent-only</id>
						<reports>
							<report>team</report>
							<report>dependency-info</report>
							<report>scm</report>
							<report>distribution-management</report>
							<report>issue-management</report>
							<report>ci-management</report>
							<report>modules</report>
							<report>licenses</report>
						</reports>
						<inherited>false</inherited>
					</reportSet>
					<reportSet>
						<id>project-info-report-every-module-last-part</id>
						<reports>
							<report>dependencies</report>
							<report>dependency-convergence</report>
							<report>dependency-management</report>
						</reports>
					</reportSet>
				</reportSets>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>versions-maven-plugin</artifactId>
				<version>2.7</version>
				<reportSets>
					<reportSet>
						<reports>
							<report>plugin-updates-report</report>
							<report>dependency-updates-report</report>
						</reports>
						<inherited>false</inherited>
						<configuration>
							<rulesUri>file:///${maven.multiModuleProjectDirectory}/src/maven/maven-version-rules.xml</rulesUri>
						</configuration>
					</reportSet>
					<reportSet>
						<!-- inherit no (an empty report set) to all child modules -->
						<reports />
					</reportSet>
				</reportSets>
			</plugin>
		</plugins>
	</reporting>

	<profiles>
		<profile>
			<id>release</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<executions>
							<execution>
								<goals>
									<goal>test-jar-no-fork</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-jar-plugin</artifactId>
						<executions>
							<execution>
								<goals>
									<goal>test-jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

</project>
