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

<!--
    Copyright (c) 2016 Diamond Light Source Ltd. and others.
    All rights reserved. This program and the accompanying materials
    are made available under the terms of the Eclipse Public License v1.0
    which accompanies this distribution, and is available at
    http://www.eclipse.org/legal/epl-v10.html

    Contributors:
	Diamond Light Source Ltd - initial API and implementation
 -->

<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>
	<artifactId>org.eclipse.january</artifactId>
	<version>2.0.2</version>
	<parent>
		<relativePath>../releng/org.eclipse.january.releng/pom.xml</relativePath>
		<groupId>com.github.yannick-mayeur</groupId>
		<artifactId>org.eclipse.january.releng</artifactId>
		<version>2.0.2</version>
	</parent>
	<packaging>eclipse-plugin</packaging>

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

	<build>
		<plugins>
			<plugin>
				<artifactId>exec-maven-plugin</artifactId>
				<groupId>org.codehaus.mojo</groupId>
				<version>1.5.0</version>
				<executions>
					<execution>
						<id>Verify generated files are up to date</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>exec</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<executable>${basedir}/src/org/eclipse/january/dataset/internal/template/verify_all.sh</executable>
					<workingDirectory>${basedir}/src/org/eclipse/january/dataset/internal/template</workingDirectory>
				</configuration>
			</plugin>
			<plugin>
				<!-- this plug-in splits version so that below the title can exclude the -SNAPSHOT
				 http://stackoverflow.com/questions/13347796/manipulate-project-version-property-to-remove-snapshot
			     -->
				<artifactId>build-helper-maven-plugin</artifactId>
				<groupId>org.codehaus.mojo</groupId>
				<version>3.0.0</version>
				<executions>
					<execution>
						<id>parse-version</id>
						<goals>
							<goal>parse-version</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<artifactId>maven-javadoc-plugin</artifactId>
				<groupId>org.apache.maven.plugins</groupId>
				<version>2.10.4</version>
				<executions>
					<execution>
						<id>build-apidocs</id>
						<phase>generate-resources</phase>
						<goals>
							<goal>javadoc</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<windowtitle>The Eclipse January API Documentation</windowtitle>
					<doctitle>${project.name} ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion} API.</doctitle>
					<excludePackageNames>*.internal.*</excludePackageNames>
					<linksource>true</linksource>
					<links>
						<!-- This list should match the bundles/packages depended on, with the versions as specified in the
						     target platform -->
						<link>https://docs.oracle.com/javase/7/docs/api/</link>
						<link>https://commons.apache.org/proper/commons-lang/javadocs/api-2.6/</link>
						<link>https://commons.apache.org/proper/commons-math/javadocs/api-3.5/</link>
						<link>https://www.slf4j.org/apidocs/</link>
					</links>
					<failOnError>false</failOnError>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-gpg-plugin</artifactId>
				<version>1.5</version>
				<executions>
					<execution>
						<id>sign-artifacts</id>
						<phase>verify</phase>
						<goals>
							<goal>sign</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
	<dependencies>
		<dependency>
			<groupId>org.apache.commons</groupId>
			<artifactId>commons-math3</artifactId>
			<version>3.3</version>
		</dependency>
		<dependency>
			<groupId>commons-lang</groupId>
			<artifactId>commons-lang</artifactId>
			<version>2.6</version>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<version>1.7.20</version>
		</dependency>
	</dependencies>
</project>
