<?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>com.genability</groupId>
	<artifactId>genability-client</artifactId>
	<version>1.2.0</version>
	<name>${project.groupId}:${project.artifactId}</name>
	<description>Genability API Java Client</description>
	<url>http://github.com/Genability/genability-java/</url>
	
	<licenses>
		<license>
			<name>MIT License</name>
			<url>http://www.opensource.org/licenses/mit-license.php</url>
		</license>
	</licenses>

	<developers>
    	<developer>
      		<name>Manjiri Mandhale</name>
      		<email>mmandhale@genability.com</email>
      		<organization>Genability</organization>
      		<organizationUrl>http://genability.com</organizationUrl>
    	</developer>
    	<developer>
      		<name>Scott Harris</name>
      		<email>sharris@genability.com</email>
      		<organization>Genability</organization>
      		<organizationUrl>http://genability.com</organizationUrl>
    	</developer>
  	</developers>
  	
  	<scm>
  		<connection>scm:git:git@github.com:Genability/genability-java.git</connection>
  		<developerConnection>scm:git:git@github.com:Genability/genability-java.git</developerConnection>
  		<url>git@github.com:Genability/genability-java.git</url>
	</scm>
	
	<distributionManagement>
  		<snapshotRepository>
    		<id>ossrh</id>
    		<url>https://oss.sonatype.org/content/repositories/snapshots</url>
  		</snapshotRepository>
	</distributionManagement>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
		<httpclient.version>4.3.1</httpclient.version>
		<jackson.version>2.3.0</jackson.version>
		<jodatime.version>2.3</jodatime.version>
		<slf4j.version>1.7.5</slf4j.version>
		<junit.version>4.11</junit.version>
	</properties>
	
	<dependencies>
		<dependency>
			<groupId>org.apache.httpcomponents</groupId>
			<artifactId>httpclient</artifactId>
			<version>${httpclient.version}</version>
			<exclusions>
				<exclusion>
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.apache.httpcomponents</groupId>
			<artifactId>httpmime</artifactId>
			<version>${httpclient.version}</version>
		</dependency>
		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-core</artifactId>
			<version>${jackson.version}</version>
		</dependency>
		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-annotations</artifactId>
			<version>${jackson.version}</version>
		</dependency>
		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-databind</artifactId>
			<version>${jackson.version}</version>
		</dependency>
		<dependency>
			<groupId>com.fasterxml.jackson.datatype</groupId>
			<artifactId>jackson-datatype-joda</artifactId>
			<version>${jackson.version}</version>
			<exclusions>
				<exclusion>
					<groupId>joda-time</groupId>
					<artifactId>joda-time</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>joda-time</groupId>
			<artifactId>joda-time</artifactId>
			<version>${jodatime.version}</version>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<version>${slf4j.version}</version>
		</dependency>

		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>${junit.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-simple</artifactId>
			<version>${slf4j.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>jcl-over-slf4j</artifactId>
			<version>${slf4j.version}</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<profiles>
		<profile>
			<!-- these are actions that are required to release to the sonatype
			OSSH. activate this profile when deploying with mvn clean deploy -P release
			NOTE: Will only work if your version number doesn't end in -SNAPSHOT -->

			<!--  see here: http://central.sonatype.org/pages/requirements.html and
			here: http://central.sonatype.org/pages/apache-maven.html for the instructions
			that i followed to set this up. -->
			<id>release</id>
			<build>
				<plugins>
					<!-- package source with distribution -->
				    <plugin>
				      	<groupId>org.apache.maven.plugins</groupId>
				      	<artifactId>maven-source-plugin</artifactId>
				      	<version>2.2.1</version>
				      	<executions>
				        	<execution>
				          		<id>attach-sources</id>
				          		<goals>
				            		<goal>jar-no-fork</goal>
				          		</goals>
				        	</execution>
				      	</executions>
			    	</plugin>
			    	<!-- create javadoc to distribute to central -->
				    <plugin>
				      	<groupId>org.apache.maven.plugins</groupId>
				      	<artifactId>maven-javadoc-plugin</artifactId>
				      	<version>2.9.1</version>
				      	<executions>
				        	<execution>
				          		<id>attach-javadocs</id>
				          		<goals>
				            		<goal>jar</goal>
				          		</goals>
				        	</execution>
				      	</executions>
				    </plugin>
				    <!-- sign the resulting files to prepare for sending to central -->
				    <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>
		</profile>
	</profiles>

	<build>
		<plugins>
			<plugin>
      			<groupId>org.sonatype.plugins</groupId>
      			<artifactId>nexus-staging-maven-plugin</artifactId>
      			<version>1.6.3</version>
      			<extensions>true</extensions>
      			<configuration>
        			<serverId>ossrh</serverId>
        			<nexusUrl>https://oss.sonatype.org/</nexusUrl>
        			<!-- set this to false so that we can check if something went
        			wrong before deploying to the universe -->
        			<autoReleaseAfterClose>false</autoReleaseAfterClose>
      			</configuration>
      		</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.1</version>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.14.1</version>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-enforcer-plugin</artifactId>
				<version>1.3.1</version>
				<executions>
					<execution>
						<id>enforce</id>
						<goals>
							<goal>enforce</goal>
						</goals>
						<configuration>
							<rules>
								<DependencyConvergence/>
								<bannedDependencies>
									<excludes>
										<exclude>commons-logging:commons-logging</exclude>
									</excludes>
								</bannedDependencies>
							</rules>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

</project>
