<?xml version='1.0' encoding='UTF-8'?>
<!--

	Copyright 2015 Vitaliy Berdinskikh
	
	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>ua.co.ur6lad</groupId>
	<artifactId>markdown-options</artifactId>
	<version>1.0.4</version>
	<packaging>jar</packaging>

	<name>Markdown Options</name>
	<description>
		_Markdown-options_ unites [pegdown](https://github.com/sirthias/pegdown)'s extensions in one enum. It uses [pegdown](https://github.com/sirthias/pegdown) as dependency. _Pegdown_ is a pure Java library for clean and lightweight [Markdown](http://daringfireball.net/projects/markdown) processing.
	</description>
	<inceptionYear>2015</inceptionYear>
	<url>http://ur6lad.co.ua/markdown-options</url>
	<licenses>
		<license>
			<name>Apache 2</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
			<comments>See LICENSE</comments>
		</license>
	</licenses>

	<developers>
		<developer>
			<id>ur6lad</id>
			<name>Vitaliy Berdinskikh</name>
			<email>ur6lad@gmail.com</email>
			<url>http://ur6lad.co.ua/</url>
			<timezone>Europe/Kyiv</timezone>
		</developer>
	</developers>

	<prerequisites>
		<maven>3.0</maven>
	</prerequisites>

	<scm>
		<connection>scm:hg:http://bitbucket.org/ur6lad/markdown-options</connection>
		<developerConnection>scm:hg:https://ur6lad@bitbucket.org/ur6lad/markdown-options</developerConnection>
		<url>http://bitbucket.org/ur6lad/markdown-options</url>
	</scm>
	<issueManagement>
		<system>Bitbucket</system>
		<url>https://bitbucket.org/ur6lad/markdown-options/issues</url>
	</issueManagement>

	<distributionManagement>
		<repository>
			<id>oss-jfrog-artifactory</id>
			<name>oss-jfrog-artifactory-releases</name>
			<url>http://oss.jfrog.org/artifactory/oss-release-local</url>
		</repository>
		<snapshotRepository>
			<id>oss-jfrog-artifactory</id>
			<name>oss-jfrog-artifactory-snapshots</name>
			<url>http://oss.jfrog.org/artifactory/oss-snapshot-local</url>
		</snapshotRepository>
	</distributionManagement>

	<properties>
		<bundle.exportPackage>ua.co.ur6lad.markdown;uses:="org.pegdown,org.slf4j";version="1.0.4"</bundle.exportPackage>
		<bundle.importPackage>org.pegdown;version="[1.5,2)",org.slf4j;version="[1.7,2)"</bundle.importPackage>
		<bundle.requireCapability>osgi.ee;filter:="(&amp;(osgi.ee=JavaSE)(version=1.6))"</bundle.requireCapability>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>

	<dependencies>
		<dependency>
			<groupId>org.pegdown</groupId>
			<artifactId>pegdown</artifactId>
			<version>1.5.0</version>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<version>1.7.10</version>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-simple</artifactId>
			<version>1.7.10</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.12</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<resources>
			<resource>
				<directory>src/main/resources</directory>
				<filtering>true</filtering>
			</resource>
		</resources>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.2</version>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<version>2.5</version>
				<configuration>
					<archive>
						<manifestEntries>
							<Built-By>${project.developers[0].id}</Built-By>
							<!-- OSGi entries -->
							<Bundle-Description>${project.description}</Bundle-Description>
							<Bundle-License>${project.licenses[0].url}</Bundle-License>
							<Bundle-Name>${project.name}</Bundle-Name>
							<Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
							<Bundle-Version>${project.version}</Bundle-Version>
							<Export-Package>${bundle.exportPackage}</Export-Package>
							<Import-Package>${bundle.importPackage}</Import-Package>
							<Require-Capability>${bundle.requireCapability}</Require-Capability>
						</manifestEntries>
					</archive>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<profiles>
		<profile>
			<id>javadocs</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
						<version>2.10.1</version>
						<configuration>
							<links>
								<link>http://www.decodified.com/pegdown/api/</link>
								<link>http://www.slf4j.org/apidocs/</link>
								<link>http://docs.oracle.com/javaee/6/api/</link>
							</links>
						</configuration>
						<executions>
							<execution>
								<id>attach-javadocs</id>
								<goals>
									<goal>javadoc</goal>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>gpg-signing</id>
			<build>
				<plugins>
					<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>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>sources</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<version>2.4</version>
						<executions>
							<execution>
								<id>attach-sources</id>
								<goals>
									<goal>jar-no-fork</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
</project>