<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>io.katharsis</groupId>
		<artifactId>katharsis-parent</artifactId>
		<version>3.0.2</version>
		<packaging>pom</packaging>

		<name>Katharsis parent POM</name>
		<url>https://github.com/katharsis-project/katharsis-framework</url>
		<description>Parent definition for Katharsis projects</description>
		<scm>
				<url>https://github.com/katharsis-project/katharsis-framework</url>
				<connection>scm:git:git://github.com/katharsis-project/katharsis-framework.git</connection>
				<developerConnection>scm:git:git@github.com:katharsis-project/katharsis-framework.git</developerConnection>
		</scm>
		<issueManagement>
				<system>GitHub</system>
				<url>https://github.com/katharsis-project/katharsis-framework/issues</url>
		</issueManagement>
		<licenses>
				<license>
						<name>Apache License 2.0</name>
						<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
				</license>
		</licenses>
		<developers>
				<developer>
						<organization>Katharsis community</organization>
				</developer>
		</developers>

		<properties>
				<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
				<javaVersion>1.7</javaVersion>

				<reflections.version>0.9.9</reflections.version>
				<typetools.version>0.4.4</typetools.version>
				<jackson.version>2.8.7</jackson.version>
				<slf4j.version>1.7.13</slf4j.version>
				<logback.version>1.1.7</logback.version>

				<junit.version>4.12</junit.version>
				<mockito.version>1.10.19</mockito.version>
				<assertj.version>2.2.0</assertj.version>

				<maven-source-plugin.version>2.4</maven-source-plugin.version>
				<maven-javadoc-plugin.version>2.10.2</maven-javadoc-plugin.version>
				<maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
				<jacoco-maven-plugin.version>0.7.7.201606060606</jacoco-maven-plugin.version>
				<maven-compiler-plugin.version>3.2</maven-compiler-plugin.version>
				<coveralls-maven-plugin.version>4.2.0</coveralls-maven-plugin.version>
				<gitlog-maven-plugin.version>1.12.3</gitlog-maven-plugin.version>
				<maven-bundle-plugin.version>2.5.3</maven-bundle-plugin.version>

				<okhttp.version>3.4.1</okhttp.version>
				<httpclient.version>4.5.2</httpclient.version>
				<jersey.version>2.25.1</jersey.version>

				<brave.version>3.14.1</brave.version>
				<javax.ws.rs-api.version>2.0.1</javax.ws.rs-api.version>
				<guava.version>15.0</guava.version>

				<gpg.passphrase />
				<sonatypeOssDistMgmtSnapshotsUrl>https://oss.sonatype.org/content/repositories/snapshots/</sonatypeOssDistMgmtSnapshotsUrl>
		</properties>

		<parent>
				<groupId>org.sonatype.oss</groupId>
				<artifactId>oss-parent</artifactId>
				<version>7</version>
		</parent>

		<dependencyManagement>
				<dependencies>
						<dependency>
								<groupId>org.reflections</groupId>
								<artifactId>reflections</artifactId>
								<version>${reflections.version}</version>
						</dependency>
						<dependency>
								<groupId>net.jodah</groupId>
								<artifactId>typetools</artifactId>
								<version>${typetools.version}</version>
						</dependency>
						<dependency>
								<groupId>org.slf4j</groupId>
								<artifactId>slf4j-api</artifactId>
								<version>${slf4j.version}</version>
						</dependency>

						<dependency>
								<groupId>com.fasterxml.jackson.core</groupId>
								<artifactId>jackson-databind</artifactId>
								<version>${jackson.version}</version>
						</dependency>
						<dependency>
								<groupId>com.fasterxml.jackson.core</groupId>
								<artifactId>jackson-annotations</artifactId>
								<version>${jackson.version}</version>
						</dependency>

						<dependency>
								<groupId>junit</groupId>
								<artifactId>junit</artifactId>
								<version>${junit.version}</version>
								<scope>test</scope>
						</dependency>
						<dependency>
								<groupId>org.mockito</groupId>
								<artifactId>mockito-core</artifactId>
								<version>${mockito.version}</version>
								<scope>test</scope>
						</dependency>
						<dependency>
								<groupId>org.assertj</groupId>
								<artifactId>assertj-core</artifactId>
								<version>${assertj.version}</version>
								<scope>test</scope>
						</dependency>
						<dependency>
								<groupId>ch.qos.logback</groupId>
								<artifactId>logback-classic</artifactId>
								<version>${logback.version}</version>
						</dependency>
						<dependency>
								<groupId>org.slf4j</groupId>
								<artifactId>jul-to-slf4j</artifactId>
								<version>${slf4j.version}</version>
						</dependency>
				</dependencies>
		</dependencyManagement>

		<build>
				<pluginManagement>
						<plugins>
								<plugin>
										<artifactId>maven-compiler-plugin</artifactId>
										<version>${maven-compiler-plugin.version}</version>
										<configuration>
												<source>${javaVersion}</source>
												<target>${javaVersion}</target>
										</configuration>
								</plugin>
								<plugin>
										<groupId>org.jacoco</groupId>
										<artifactId>jacoco-maven-plugin</artifactId>
										<version>${jacoco-maven-plugin.version}</version>
										<executions>
												<execution>
														<id>prepare-agent</id>
														<goals>
																<goal>prepare-agent</goal>
														</goals>
												</execution>
										</executions>
								</plugin>
								<plugin>
										<groupId>org.eluder.coveralls</groupId>
										<artifactId>coveralls-maven-plugin</artifactId>
										<version>${coveralls-maven-plugin.version}</version>
										<configuration>
												<!--suppress MavenModelInspection -->
												<repoToken>${env.coverallsToken}</repoToken>
												<aggregate>true</aggregate>
										</configuration>
								</plugin>
								<plugin>
										<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>
										<artifactId>maven-javadoc-plugin</artifactId>
										<version>${maven-javadoc-plugin.version}</version>
										<executions>
												<execution>
														<id>attach-javadocs</id>
														<goals>
																<goal>jar</goal>
														</goals>
														<configuration>
															<additionalparam>${javadoc.opts}</additionalparam>
														</configuration>
												</execution>
										</executions>
								</plugin>
								<plugin>
										<artifactId>maven-deploy-plugin</artifactId>
										<version>${maven-deploy-plugin.version}</version>
								</plugin>
								<plugin>
										<groupId>com.github.danielflower.mavenplugins</groupId>
										<artifactId>gitlog-maven-plugin</artifactId>
										<version>${gitlog-maven-plugin.version}</version>
										<configuration>
												<generateMarkdownChangeLog>true</generateMarkdownChangeLog>
												<generatePlainTextChangeLog>false</generatePlainTextChangeLog>
												<generateJSONChangeLog>false</generateJSONChangeLog>
												<generateSimpleHTMLChangeLog>false</generateSimpleHTMLChangeLog>
												<outputDirectory>.</outputDirectory>
												<dateFormat>yyyy-MM-dd</dateFormat>
												<excludeCommitsPattern>.*\b(Update README.md|snapshot)\b.*</excludeCommitsPattern>
										</configuration>
										<executions>
												<execution>
														<goals>
																<goal>generate</goal>
														</goals>
												</execution>
										</executions>
								</plugin>
								<plugin>
										<groupId>org.apache.felix</groupId>
										<artifactId>maven-bundle-plugin</artifactId>
										<version>${maven-bundle-plugin.version}</version>
										<extensions>true</extensions>
								</plugin>
						</plugins>
				</pluginManagement>

				<plugins>
						<plugin>
								<artifactId>maven-compiler-plugin</artifactId>
						</plugin>
						<plugin>
								<groupId>org.apache.maven.plugins</groupId>
								<artifactId>maven-release-plugin</artifactId>
								<configuration>
										<mavenExecutorId>forked-path</mavenExecutorId>
										<useReleaseProfile>false</useReleaseProfile>
										<arguments>-Dgpg.passphrase=${gpg.passphrase}
												-Psonatype-oss-release</arguments>
								</configuration>
						</plugin>
				</plugins>
		</build>

		<profiles>

				<profile>
						<id>java8-doclint-disabled</id>
						<activation>
								<jdk>[1.8,)</jdk>
						</activation>
						<properties>
								<javadoc.opts>-Xdoclint:none</javadoc.opts>
						</properties>
				</profile>

				<profile>
						<id>repositories</id>
						<activation>
								<activeByDefault>true</activeByDefault>
						</activation>
						<repositories>
								<repository>
										<id>sonatype-nexus-snapshots</id>
										<name>Sonatype Nexus Snapshots</name>
										<url>https://oss.sonatype.org/content/repositories/snapshots</url>
										<releases>
												<enabled>false</enabled>
										</releases>
										<snapshots>
												<enabled>true</enabled>
										</snapshots>
								</repository>
						</repositories>

						<distributionManagement>
								<snapshotRepository>
										<id>sonatype-nexus-snapshots</id>
										<name>Sonatype Nexus Snapshots</name>
										<url>${sonatypeOssDistMgmtSnapshotsUrl}</url>
								</snapshotRepository>
								<repository>
										<id>sonatype-nexus-staging</id>
										<name>Nexus Release Repository</name>
										<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
								</repository>
						</distributionManagement>
				</profile>
				<profile>
						<id>sonatype-oss-release</id>
						<build>
								<plugins>
										<plugin>
												<groupId>org.apache.maven.plugins</groupId>
												<artifactId>maven-source-plugin</artifactId>
												<version>2.1.2</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-javadoc-plugin</artifactId>
												<version>2.7</version>
												<executions>
														<execution>
																<id>attach-javadocs</id>
																<goals>
																		<goal>jar</goal>
																</goals>
																<configuration>
																		<additionalparam>${javadoc.opts}</additionalparam>
																</configuration>
														</execution>
												</executions>
										</plugin>
										<plugin>
												<groupId>org.apache.maven.plugins</groupId>
												<artifactId>maven-gpg-plugin</artifactId>
												<version>1.1</version>
												<executions>
														<execution>
																<id>sign-artifacts</id>
																<phase>verify</phase>
																<goals>
																		<goal>sign</goal>
																</goals>
														</execution>
												</executions>
										</plugin>
								</plugins>
						</build>
				</profile>
				<profile>
						<id>release-sign-artifacts</id>
						<activation>
								<property>
										<name>performRelease</name>
										<value>true</value>
								</property>
						</activation>
						<build>
								<plugins>
										<plugin>
												<groupId>org.apache.maven.plugins</groupId>
												<artifactId>maven-gpg-plugin</artifactId>
												<version>1.5</version>
												<configuration>
														<passphrase>${gpg.passphrase}</passphrase>
												</configuration>
												<executions>
														<execution>
																<id>sign-artifacts</id>
																<phase>verify</phase>
																<goals>
																		<goal>sign</goal>
																</goals>
														</execution>
												</executions>
										</plugin>
								</plugins>
						</build>
				</profile>
		</profiles>

		<dependencies>
				<dependency>
						<groupId>junit</groupId>
						<artifactId>junit</artifactId>
						<scope>test</scope>
				</dependency>
				<dependency>
						<groupId>org.mockito</groupId>
						<artifactId>mockito-core</artifactId>
						<scope>test</scope>
				</dependency>
				<dependency>
						<groupId>org.assertj</groupId>
						<artifactId>assertj-core</artifactId>
						<scope>test</scope>
				</dependency>
		</dependencies>
</project>
