<?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>org.knowm.xchange</groupId>
	<artifactId>xchange-parent</artifactId>
	<version>4.0.0</version>
	<packaging>pom</packaging>

	<name>XChange</name>
	<description>XChange is a Java library providing a simple and consistent API for interacting with a diverse set of cryptocurrency exchanges.</description>
	<url>http://knowm.org/open-source/xchange</url>
	<inceptionYear>2012</inceptionYear>

	<organization>
		<name>Knowm Inc.</name>
		<url>http://knowm.org/open-source/xchange/</url>
	</organization>

	<developers>
		<developer>
			<name>Tim Molter</name>
		</developer>
	</developers>

	<licenses>
		<license>
			<name>MIT</name>
			<url>http://www.opensource.org/licenses/mit-license.php</url>
			<distribution>repo</distribution>
			<comments>All source code is under the MIT license.</comments>
		</license>
	</licenses>

	<issueManagement>
		<system>GitHub</system>
		<url>https://github.com/timmolter/XChange/issues</url>
	</issueManagement>

	<distributionManagement>
		<snapshotRepository>
			<id>sonatype-nexus-snapshots</id>
			<name>Sonatype Nexus Snapshots</name>
			<url>http://oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
		<repository>
			<id>sonatype-nexus-staging</id>
			<name>Nexus Release Repository</name>
			<url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
		</repository>
		<downloadUrl>https://oss.sonatype.org/content/groups/public/org/knowm/xchange</downloadUrl>
	</distributionManagement>

	<scm>
		<connection>scm:git:git@github.com:timmolter/XChange.git</connection>
		<developerConnection>scm:git:git@github.com:timmolter/XChange.git</developerConnection>
		<url>git@github.com:timmolter/XChange.git</url>
		<tag>xchange-4.0.0</tag>
	</scm>

	<ciManagement>
		<url>https://travis-ci.org/timmolter/XChange</url>
	</ciManagement>

	<modules>
		<module>xchange-anx</module>
		<module>xchange-bitbay</module>
		<module>xchange-bitcoinaverage</module>
		<module>xchange-bitcoincharts</module>
		<module>xchange-bitcoinde</module>
		<module>xchange-bitcoinium</module>
		<module>xchange-bitcurex</module>
		<module>xchange-bitfinex</module>
		<module>xchange-bitkonan</module>
		<module>xchange-bitmarket</module>
		<module>xchange-bitso</module>
		<module>xchange-bitstamp</module>
		<module>xchange-bittrex</module>
		<module>xchange-huobi</module>
		<module>xchange-bleutrade</module>
		<module>xchange-blockchain</module>
		<module>xchange-btc38</module>
		<module>xchange-btccentral</module>
		<module>xchange-btcchina</module>
		<module>xchange-btce</module>
		<module>xchange-btcmarkets</module>
		<module>xchange-btctrade</module>
		<module>xchange-bter</module>
		<module>xchange-campbx</module>
		<module>xchange-cavirtex</module>
		<module>xchange-cexio</module>
		<module>xchange-clevercoin</module>
		<module>xchange-coinbase</module>
		<module>xchange-coinbaseex</module>
		<module>xchange-coinfloor</module>
		<module>xchange-coinmate</module>
		<module>xchange-coinsetter</module>
		<module>xchange-cointrader</module>
		<module>xchange-core</module>
		<module>xchange-cryptofacilities</module>
		<module>xchange-cryptonit</module>
		<module>xchange-cryptsy</module>
		<module>xchange-empoex</module>
		<module>xchange-examples</module>
		<module>xchange-gatecoin</module>
		<module>xchange-hitbtc</module>
		<module>xchange-itbit</module>
		<module>xchange-independentreserve</module>
		<module>xchange-jubi</module>
		<module>xchange-kraken</module>
		<module>xchange-lakebtc</module>
		<module>xchange-loyalbit</module>
		<module>xchange-mercadobitcoin</module>
		<module>xchange-mexbt</module>
		<module>xchange-okcoin</module>
		<module>xchange-openexchangerates</module>
		<module>xchange-poloniex</module>
		<module>xchange-quoine</module>
		<module>xchange-ripple</module>
		<module>xchange-taurus</module>
		<module>xchange-therock</module>
		<module>xchange-vaultoro</module>
		<module>xchange-vircurex</module>
		<module>xchange-yacuna</module>
	</modules>

	<repositories>
		<repository>
			<id>sonatype-oss-public</id>
			<url>https://oss.sonatype.org/content/groups/public/</url>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>
		<!-- For Quick FIX -->
		<repository>
			<id>MarketceteraRepo</id>
			<url>http://repo.marketcetera.org/maven</url>
			<releases>
				<enabled>true</enabled>
			</releases>
		</repository>
		<!-- https://github.com/fatshotty/socket.io-java-client -->
		<repository>
			<id>keytwo.net</id>
			<name>Keytwo.net Repository</name>
			<url>http://audiobox.keytwo.net</url>
		</repository>
	</repositories>

	<dependencyManagement>
		<dependencies>

			<!-- Logging is through SLF4J -->
			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-api</artifactId>
				<version>1.7.16</version>
			</dependency>

			<!-- SLF4J implementation for use in testing -->
			<dependency>
				<groupId>ch.qos.logback</groupId>
				<artifactId>logback-classic</artifactId>
				<version>1.1.3</version>
				<!-- Test scope prevents this implementation bleeding out to consuming 
					applications -->
				<scope>test</scope>
			</dependency>

			<!-- Rest client -->
			<dependency>
				<groupId>com.github.mmazi</groupId>
				<artifactId>rescu</artifactId>
				<version>1.8.1</version>
			</dependency>

			<!-- Charting -->
			<dependency>
				<groupId>org.knowm.xchart</groupId>
				<artifactId>xchart</artifactId>
				<version>3.0.3</version>
			</dependency>

			<!-- Websocket library -->
			<dependency>
				<groupId>org.java-websocket</groupId>
				<artifactId>Java-WebSocket</artifactId>
				<version>1.3.0</version>
			</dependency>

			<!-- Pusher -->
			<dependency>
				<groupId>com.pusher</groupId>
				<artifactId>pusher-java-client</artifactId>
				<version>0.3.1</version>
			</dependency>

			<dependency>
				<groupId>org.bouncycastle</groupId>
				<artifactId>bcprov-jdk15on</artifactId>
				<version>1.50</version>
			</dependency>

			<!--For String Joining, etc. -->
			<dependency>
				<groupId>org.apache.commons</groupId>
				<artifactId>commons-lang3</artifactId>
				<version>3.4</version>
			</dependency>

			<!-- For Bridging/routing all JUL log records to the SLF4J API. -->
			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>jul-to-slf4j</artifactId>
				<version>1.7.12</version>
			</dependency>

			<!-- For FIX API -->
			<dependency>
				<groupId>quickfixj</groupId>
				<artifactId>quickfixj-core</artifactId>
				<version>1.5.3-bd</version>
			</dependency>
			<dependency>
				<groupId>quickfixj</groupId>
				<artifactId>quickfixj-msg-fix44</artifactId>
				<version>1.5.3-bd</version>
			</dependency>

			<!-- SocketIO -->
			<dependency>
				<groupId>com.github.nkzawa</groupId>
				<artifactId>socket.io-client</artifactId>
				<version>0.2.0</version>
			</dependency>

			<!-- For Netty-based websockets -->
			<dependency>
				<groupId>io.netty</groupId>
				<artifactId>netty-all</artifactId>
				<version>4.1.0.Beta3</version>
			</dependency>

			<!-- For CoinsetterSocketIOService -->
			<dependency>
				<groupId>io.socket</groupId>
				<artifactId>socket.io-client</artifactId>
				<version>0.2.1</version>
			</dependency>

			<dependency>
				<groupId>commons-io</groupId>
				<artifactId>commons-io</artifactId>
				<version>2.4</version>
			</dependency>

			<dependency>
				<groupId>net.iharder</groupId>
				<artifactId>base64</artifactId>
				<version>2.3.8</version>
			</dependency>

			<dependency>
				<groupId>com.google.code.gson</groupId>
				<artifactId>gson</artifactId>
				<version>2.3.1</version>
			</dependency>

			<!-- For Base64 encoding in Gatecoin API -->
			<dependency>
				<groupId>org.apache-extras.camel-extra</groupId>
				<artifactId>camel-example-rcode</artifactId>
				<version>2.12.3</version>
				<type>jar</type>
			</dependency>

		</dependencies>
	</dependencyManagement>

	<!-- All children will have these dependencies -->
	<dependencies>

		<!-- JUnit for testing -->
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.12</version>
			<scope>test</scope>
		</dependency>

		<!-- slf4j implementation for testing -->
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-simple</artifactId>
			<version>1.7.16</version>
			<scope>test</scope>
		</dependency>

		<!-- FEST for fluent test assertions -->
		<dependency>
			<groupId>org.easytesting</groupId>
			<artifactId>fest-assert-core</artifactId>
			<version>2.0M10</version>
			<scope>test</scope>
		</dependency>

		<!-- PowerMockito for unit tests -->
		<dependency>
			<groupId>org.powermock</groupId>
			<artifactId>powermock-module-junit4</artifactId>
			<version>${powermock.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.powermock</groupId>
			<artifactId>powermock-api-mockito</artifactId>
			<version>${powermock.version}</version>
			<scope>test</scope>
		</dependency>

	</dependencies>

	<profiles>
		<profile>
			<id>release-sign-artifacts</id>
			<activation>
				<property>
					<name>performRelease</name>
					<value>true</value>
				</property>
			</activation>
			<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>

					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-surefire-plugin</artifactId>
						<version>2.19.1</version>
					</plugin>

					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-failsafe-plugin</artifactId>
						<version>2.19.1</version>
						<executions>
							<execution>
								<goals>
									<goal>integration-test</goal>
									<goal>verify</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<skipTests>${skipIntegrationTests}</skipTests>
							<includes>
								<include>**/*Integration.java</include>
							</includes>
						</configuration>
					</plugin>
					<!-- Generates a source code JAR during package -->
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<version>3.0.0</version>
						<executions>
							<execution>
								<id>attach-sources</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<!-- Generates JavaDocs during package -->
					<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>
								<configuration>
									<additionalparam>-Xdoclint:none</additionalparam>
								</configuration>
							</execution>
						</executions>
					</plugin>

				</plugins>
			</build>
		</profile>

	</profiles>

	<build>

		<plugins>
			<!-- Ensure compilation is done under Java 7 in all environments -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.5.1</version>
				<configuration>
					<source>1.7</source>
					<target>1.7</target>
					<showDeprecation>true</showDeprecation>
					<showWarnings>true</showWarnings>
				</configuration>
			</plugin>
			<!-- for deploying to Maven Central -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-release-plugin</artifactId>
				<version>2.5.3</version>
				<configuration>
					<autoVersionSubmodules>true</autoVersionSubmodules>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
		<skipIntegrationTests>true</skipIntegrationTests>
		<powermock.version>1.6.3</powermock.version>
	</properties>

</project>
