<?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>biz.hochguertel</groupId>
	<artifactId>ingredients-volume</artifactId>
	<version>0.2.0</version>
	<packaging>jar</packaging>

	<name>${project.groupId}:${project.artifactId}</name>
	<description>Calculates the volume of an ingredient from mass and bulk density.</description>
	<url>https://github.com/tobiashochguertel/ingredients-volume</url>

	<licenses>
		<license>
		  <name>GNU General Public License (GPL), Version 2.0</name>
		  <url>http://www.gnu.org/licenses/gpl-2.0</url>
		</license>
	</licenses>

	<developers>
		<developer>
		  <name>Tobias Hochgürtel</name>
		  <email>tobias.hochguertel@hochguertel.biz</email>
		  <organization>Hochguertel.biz</organization>
		  <organizationUrl>http://www.hochguertel.biz</organizationUrl>
		</developer>
	</developers>

	<scm>
		<connection>scm:git:git@github.com:tobiashochguertel/ingredients-volume.git</connection>
		<developerConnection>scm:git:git@github.com:tobiashochguertel/ingredients-volume.git</developerConnection>
		<url>git@github.com:tobiashochguertel/ingredients-volume.git</url>
	</scm>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<java.version>1.8</java.version>
	</properties>

	<distributionManagement>
		<repository>
		  <id>sonatype</id>
		  <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
		</repository>
		<snapshotRepository>
		  <id>sonatype</id>
		  <url>https://oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
	</distributionManagement>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.1</version>
				<configuration>
					<source>${java.version}</source>
					<target>${java.version}</target>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.11</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.hamcrest</groupId>
			<artifactId>hamcrest-all</artifactId>
			<version>1.3</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<profiles>
		<profile>
			<id>release</id>
			<build>
				<plugins>
				  <plugin>
				    <groupId>org.apache.maven.plugins</groupId>
				    <artifactId>maven-javadoc-plugin</artifactId>
				    <version>2.10.3</version>
				    <executions>
				      <execution>
				        <id>attach-javadocs</id>
				        <goals>
				          <goal>jar</goal>
				        </goals>
				      </execution>
				    </executions>
				  </plugin>
				  <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</goal>
				        </goals>
				      </execution>
				    </executions>
				  </plugin>
		      <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>
		            <configuration>
		            	<keyname>${gpg.keyname}</keyname>
		            	<passphraseServerId>${gpg.keyname}</passphraseServerId>
		            </configuration>
		          </execution>
		        </executions>
		      </plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

</project>
