<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright 2018 The OpenTracing Authors

    Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
    in compliance with the License. You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software distributed under the License
    is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
    or implied. See the License for the specific language governing permissions and limitations under
    the License.

-->
<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.opentracing.contrib</groupId>
	<artifactId>opentracing-grizzly-ahc</artifactId>
	<version>0.1.3</version>

	<name>${project.groupId}:${project.artifactId}</name>
	<description>OpenTracing Instrumentation for Grizzly AsyncHttpClient</description>
	<url>https://github.com/opentracing-contrib/java-grizzly-ahc</url>
	<inceptionYear>2018</inceptionYear>

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

	<developers>
		<developer>
			<id>jam01</id>
			<name>Jose Montoya</name>
			<email>jmontoya@ms3-inc.com</email>
		</developer>
	</developers>

	<scm>
		<connection>scm:git:https://github.com/opentracing-contrib/java-grizzly-ahc.git</connection>
		<developerConnection>scm:git:https://github.com/opentracing-contrib/java-grizzly-ahc.git</developerConnection>
		<tag>0.1.3</tag>
		<url>https://github.com/opentracing-contrib/java-grizzly-ahc</url>
	</scm>

	<issueManagement>
		<system>GitHub</system>
		<url>https://github.com/opentracing-contrib/java-grizzly-ahc/issues</url>
	</issueManagement>

	<distributionManagement>
		<repository>
			<id>bintray</id>
			<url>https://api.bintray.com/maven/opentracing/maven/opentracing-grizzly-ahc/;publish=1</url>
		</repository>
		<snapshotRepository>
			<id>jfrog-snapshots</id>
			<url>http://oss.jfrog.org/artifactory/oss-snapshot-local</url>
		</snapshotRepository>
	</distributionManagement>

	<properties>
		<java.version>1.8</java.version>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<version.bytebuddy>1.9.13</version.bytebuddy>
		<version.coveralls-maven-plugin>4.3.0</version.coveralls-maven-plugin>
		<version.formatter>2.9.0</version.formatter>
		<version.grizzly-framework>2.3.35</version.grizzly-framework>
		<version.grizzly-http-client>1.15</version.grizzly-http-client>
		<version.grizzly-http-server>2.3.35</version.grizzly-http-server>
		<version.jacoco-maven-plugin>0.8.2</version.jacoco-maven-plugin>
		<version.junit>4.12</version.junit>
		<version.maven-surefire-plugin>2.22.1</version.maven-surefire-plugin>
		<version.maven-surefire-plugin>2.22.1</version.maven-surefire-plugin>
		<version.opentracing-api>0.32.0</version.opentracing-api>
	</properties>

	<dependencies>

		<dependency>
			<groupId>io.opentracing</groupId>
			<artifactId>opentracing-api</artifactId>
			<version>${version.opentracing-api}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>io.opentracing</groupId>
			<artifactId>opentracing-util</artifactId>
			<version>${version.opentracing-api}</version>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>net.bytebuddy</groupId>
			<artifactId>byte-buddy</artifactId>
			<version>${version.bytebuddy}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>net.bytebuddy</groupId>
			<artifactId>byte-buddy-agent</artifactId>
			<version>${version.bytebuddy}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.glassfish.grizzly</groupId>
			<artifactId>grizzly-http-client</artifactId>
			<version>${version.grizzly-http-client}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>io.opentracing</groupId>
			<artifactId>opentracing-mock</artifactId>
			<version>${version.opentracing-api}</version>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>${version.junit}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.glassfish.grizzly</groupId>
			<artifactId>grizzly-framework</artifactId>
			<version>${version.grizzly-framework}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.glassfish.grizzly</groupId>
			<artifactId>grizzly-http-server</artifactId>
			<version>${version.grizzly-http-server}</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<resources>
			<resource>
				<directory>src/main/resources</directory>
			</resource>
			<resource>
				<directory>${project.build.directory}/generated-resources</directory>
			</resource>
		</resources>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.7.0</version>
				<configuration>
					<source>${java.version}</source>
					<target>${java.version}</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>com.mycila</groupId>
				<artifactId>license-maven-plugin</artifactId>
				<version>3.0</version>
				<configuration>
					<mapping>
						<java>SLASHSTAR_STYLE</java>
					</mapping>
					<header>${project.basedir}/src/build/license-header.txt</header>
					<strictCheck>true</strictCheck>
					<excludes>
						<exclude>LICENSE</exclude>
						<exclude>mvnw</exclude>
						<exclude>mvnw.cmd</exclude>
						<exclude>.mvn/**</exclude>
						<exclude>.coveralls.yml</exclude>
						<exclude>.gitattributes</exclude>
						<exclude>**/target/**</exclude>
					</excludes>
				</configuration>
				<executions>
					<execution>
						<id>license-headers</id>
						<goals>
							<goal>format</goal>
						</goals>
						<phase>process-resources</phase>
					</execution>
					<execution>
						<goals>
							<goal>check</goal>
						</goals>
						<phase>compile</phase>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>com.github.ekryd.sortpom</groupId>
				<artifactId>sortpom-maven-plugin</artifactId>
				<version>2.10.0</version>
				<configuration>
					<createBackupFile>false</createBackupFile>
					<expandEmptyElements>false</expandEmptyElements>
					<nrOfIndentSpace>-1</nrOfIndentSpace>
					<lineSeparator>\n</lineSeparator>
					<keepBlankLines>true</keepBlankLines>
					<predefinedSortOrder>recommended_2008_06</predefinedSortOrder>
					<sortDependencies>scope,groupId,artifactId</sortDependencies>
					<sortProperties>true</sortProperties>
					<verifyFail>Stop</verifyFail>
				</configuration>
				<executions>
					<execution>
						<id>sort-pom</id>
						<goals>
							<goal>sort</goal>
						</goals>
						<phase>process-sources</phase>
					</execution>
					<execution>
						<id>verify-pom</id>
						<goals>
							<goal>verify</goal>
						</goals>
						<phase>process-resources</phase>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<version>3.1.2</version>
				<executions>
					<execution>
						<id>test-jar</id>
						<goals>
							<goal>test-jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>${version.maven-surefire-plugin}</version>
				<configuration>
					<trimStackTrace>false</trimStackTrace>
					<reuseForks>false</reuseForks>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.eluder.coveralls</groupId>
				<artifactId>coveralls-maven-plugin</artifactId>
				<version>${version.coveralls-maven-plugin}</version>
			</plugin>
			<plugin>
				<groupId>org.jacoco</groupId>
				<artifactId>jacoco-maven-plugin</artifactId>
				<version>${version.jacoco-maven-plugin}</version>
				<executions>
					<execution>
						<id>prepare-agent</id>
						<goals>
							<goal>prepare-agent</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<artifactId>maven-release-plugin</artifactId>
				<version>2.5.3</version>
				<configuration>
					<useReleaseProfile>false</useReleaseProfile>
					<releaseProfiles>release</releaseProfiles>
					<autoVersionSubmodules>true</autoVersionSubmodules>
					<tagNameFormat>@{project.version}</tagNameFormat>
				</configuration>
			</plugin>
			<plugin>
				<groupId>io.zipkin.centralsync-maven-plugin</groupId>
				<artifactId>centralsync-maven-plugin</artifactId>
				<version>0.1.0</version>
				<configuration>
					<subject>opentracing</subject>
					<repo>maven</repo>
					<packageName>opentracing-grizzly-ahc</packageName>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<profiles>
		<profile>
			<id>release</id>
			<build>
				<plugins>
					<!-- Creates source jar -->
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<version>3.0.1</version>
						<executions>
							<execution>
								<id>attach-sources</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<!-- Creates javadoc jar -->
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
						<version>3.1.0</version>
						<configuration>
							<failOnError>false</failOnError>
						</configuration>
						<executions>
							<execution>
								<id>attach-javadocs</id>
								<goals>
									<goal>jar</goal>
								</goals>
								<phase>package</phase>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

</project>
