<?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/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.github.MoebiusSolutions.jacle</groupId>
	<artifactId>jacle-parent</artifactId>
	<packaging>pom</packaging>
	<version>1.12</version>
	<name>${project.artifactId}</name>
	<description>JACLE Parent POM</description>
	<url>https://github.com/MoebiusSolutions/jacle</url>

	<licenses>
		<license>
			<name>Apache License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
			<comments>A business-friendly OSS license</comments>
		</license>
	</licenses>

	<scm>
		<url>https://github.com/MoebiusSolutions/jacle</url>
		<connection>scm:git:git://github.com/MoebiusSolutions/jacle.git</connection>
		<developerConnection>scm:git:git@github.com:MoebiusSolutions/jacle.git</developerConnection>
	</scm>

	<developers>
		<developer>
			<id>moesol</id>
			<email>support@moesol.com</email>
			<name>Moebius Solutions</name>
			<url>www.moesol.com</url>
		</developer>
	</developers>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>

	<!--
		Define versions/scope of dependencies for sub-modules
		that do no explicitly define them.
	-->	
	<dependencyManagement>
		<dependencies>
			<!-- COMPILE dependencies -->
			<dependency>
				<groupId>commons-io</groupId>
				<artifactId>commons-io</artifactId>
				<version>1.3.2</version>
				<scope>compile</scope>
			</dependency>
			<dependency>
				<groupId>com.google.guava</groupId>
				<artifactId>guava</artifactId>
				<version>13.0</version>
			</dependency>
			<dependency>
				<groupId>com.google.code.gson</groupId>
				<artifactId>gson</artifactId>
				<version>2.2.4</version>
			</dependency>
			<!-- TEST dependencies -->
			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
				<version>4.8.1</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>org.mockito</groupId>
				<artifactId>mockito-all</artifactId>
				<version>1.9.0</version>
				<scope>test</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<!--
		Defines dependencies to be included in all child modules
	-->
	<dependencies>

		<!-- Standard unit testing modules -->
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
		</dependency>
		<dependency>
			<groupId>org.mockito</groupId>
			<artifactId>mockito-all</artifactId>
		</dependency>

	</dependencies>

	<build>
		<plugins>

			<!-- Sets JDK/JRE compliance level-->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.1</version>
				<configuration>
					<source>1.7</source>
					<target>1.7</target>
				</configuration>
			</plugin>
		
			<!-- Builds sources-jar for easy viewing in IDEs -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<executions>
					<execution>
						<id>attach-sources</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

		<!-- Builds javadoc-jar for easy viewing in IDEs -->
		<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>

	    </plugins>

	</build>

	<modules>
		<!--
			NOTE: The unit tests for commons are in commons-unit-tests.
			The module is broken in two so that commons-test can be used write the unit tests,
			and commons-test can use commons.
		-->
		<module>jacle-commons</module>
		<module>jacle-commons-test</module>
		<module>jacle-commons-unit-tests</module>
	</modules>

</project>
