<?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>org.holoeverywhere</groupId>
	<artifactId>parent</artifactId>
	<packaging>pom</packaging>
	<version>1.5.0</version>

	<parent>
		<groupId>org.sonatype.oss</groupId>
		<artifactId>oss-parent</artifactId>
		<version>7</version>
	</parent>

	<name>HoloEverywhere Parent</name>
	<description>Android library bringing Holo Theme to Android 1.6 and above.</description>
	<url>https://github.com/ChristopheVersieux/HoloEverywhere</url>
	<inceptionYear>2012</inceptionYear>

	<modules>
		<module>support-library</module>
		<module>library</module>
		<module>addons</module>
		<module>application</module>
		<module>demo</module>
		<module>resbuilder</module>
	</modules>

	<scm>
		<url>https://github.com/ChristopheVersieux/HoloEverywhere</url>
		<connection>scm:git:git://github.com/ChristopheVersieux/HoloEverywhere.git</connection>
		<developerConnection>scm:git:git@github.com:ChristopheVersieux/HoloEverywhere.git</developerConnection>
		<tag>holoeverywhere-1.5.0</tag>
	</scm>

	<ciManagement>
		<system>jenkins</system>
		<url>http://ci.holoeverywhere.org/</url>
	</ciManagement>

	<developers>
		<developer>
			<name>Christophe Versieux</name>
			<id>ChristopheVersieux</id>
			<roles>
				<role>developer</role>
			</roles>
		</developer>

		<developer>
			<name>Sergey Shatunov</name>
			<id>Prototik</id>
			<email>prototypegamez@gmail.com</email>
			<timezone>+8</timezone>
			<roles>
				<role>developer</role>
			</roles>
		</developer>
	</developers>

	<issueManagement>
		<system>GitHub Issues</system>
		<url>https://github.com/ChristopheVersieux/HoloEverywhere/issues</url>
	</issueManagement>

	<distributionManagement>
		<repository>
			<id>holoeverywhere-repo</id>
			<name>HoloEverywhere Repo</name>
			<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
			<uniqueVersion>true</uniqueVersion>
		</repository>

		<snapshotRepository>
			<id>holoeverywhere-repo-snapshots</id>
			<name>HoloEverywhere Repo Snapshots</name>
			<url>https://oss.sonatype.org/content/repositories/snapshots</url>
			<uniqueVersion>false</uniqueVersion>
		</snapshotRepository>

		<site>
			<id>holoeverywhere-website</id>
			<name>HoloEverywhere Website</name>
			<url>http://holoeverywhere.org/</url>
		</site>
	</distributionManagement>

	<licenses>
		<license>
			<name>LGPLv3</name>
			<url>https://raw.github.com/ChristopheVersieux/HoloEverywhere/master/LICENSE</url>
			<distribution>repo</distribution>
			<comments>Copyright (c) 2012 Christophe Versieux, Sergey Shatunov</comments>
		</license>
	</licenses>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

		<java.version>1.6</java.version>
		<abs.version>4.2.0</abs.version>
		<noa.version>2.4.0</noa.version>
		<junit.version>4.8.1</junit.version>
		<android.version>4.1.1.4</android.version>
		<android-support.version>r12</android-support.version>
		<android.sdk.platform>16</android.sdk.platform>

		<github.downloads.repositoryOwner>ChristopheVersieux</github.downloads.repositoryOwner>
		<github.downloads.repositoryName>HoloEverywhere</github.downloads.repositoryName>

		<holo.resbuilder.buildAll>true</holo.resbuilder.buildAll>
		<holo.resbuilder.outputDir>${project.basedir}/res</holo.resbuilder.outputDir>
	</properties>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>com.google.android</groupId>
				<artifactId>android</artifactId>
				<version>${android.version}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<groupId>com.google.android</groupId>
				<artifactId>support-v4</artifactId>
				<version>${android-support.version}</version>
			</dependency>

			<dependency>
				<groupId>com.google.android</groupId>
				<artifactId>android-test</artifactId>
				<version>${android.version}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
				<version>${junit.version}</version>
			</dependency>

			<dependency>
				<groupId>com.actionbarsherlock</groupId>
				<artifactId>actionbarsherlock</artifactId>
				<version>${abs.version}</version>
				<type>apklib</type>
			</dependency>

			<dependency>
				<groupId>com.nineoldandroids</groupId>
				<artifactId>library</artifactId>
				<version>${noa.version}</version>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.holoeverywhere</groupId>
					<artifactId>resbuilder</artifactId>
					<version>${project.version}</version>
					<inherited>true</inherited>
					<executions>
						<execution>
							<goals>
								<goal>build</goal>
							</goals>
						</execution>
					</executions>
					<configuration>
						<includeDirs>
							<dir>${project.basedir}/resbuilder</dir>
						</includeDirs>
					</configuration>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>3.0</version>
					<inherited>true</inherited>
					<configuration>
						<source>${java.version}</source>
						<target>${java.version}</target>
					</configuration>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-javadoc-plugin</artifactId>
					<version>2.9</version>
					<inherited>true</inherited>
					<configuration>
						<skip>true</skip>
					</configuration>
				</plugin>

				<plugin>
					<groupId>com.jayway.maven.plugins.android.generation2</groupId>
					<artifactId>android-maven-plugin</artifactId>
					<version>3.5.1</version>
					<inherited>true</inherited>
					<extensions>true</extensions>
					<configuration>
						<sign>
							<debug>false</debug>
						</sign>
						<zipalign>
							<skip>true</skip>
						</zipalign>
						<undeployBeforeDeploy>true</undeployBeforeDeploy>
						<proguard>
							<skip>true</skip>
						</proguard>
					</configuration>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-release-plugin</artifactId>
					<version>2.4</version>
					<configuration>
						<autoVersionSubmodules>true</autoVersionSubmodules>
						<tagNameFormat>holoeverywhere-@{project.version}</tagNameFormat>
						<scmCommentPrefix>Release: </scmCommentPrefix>
					</configuration>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-gpg-plugin</artifactId>
					<version>1.4</version>
					<executions>
						<execution>
							<id>sign-artifacts</id>
							<phase>verify</phase>
							<goals>
								<goal>sign</goal>
							</goals>
						</execution>
					</executions>
				</plugin>

				<plugin>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>2.13</version>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-jarsigner-plugin</artifactId>
					<version>1.2</version>
					<inherited>true</inherited>
					<executions>
						<execution>
							<goals>
								<goal>sign</goal>
								<goal>verify</goal>
							</goals>
							<phase>package</phase>
							<inherited>true</inherited>
						</execution>
					</executions>
					<configuration>
						<removeExistingSignatures>true</removeExistingSignatures>
						<includes>
							<include>${project.build.directory}/*.apk</include>
							<include>${project.build.directory}/*.jar</include>
						</includes>
						<certs>true</certs>
						<keystore>${holo.sign.keystore}</keystore>
						<alias>${holo.sign.alias}</alias>
						<storepass>${holo.sign.storepass}</storepass>
						<keypass>${holo.sign.keypass}</keypass>
						<arguments>
							<argument>-sigalg</argument>
							<argument>MD5withRSA</argument>
							<argument>-digestalg</argument>
							<argument>SHA1</argument>
						</arguments>
					</configuration>
				</plugin>

				<plugin>
					<artifactId>maven-site-plugin</artifactId>
					<version>3.2</version>
					<configuration>
						<skip>true</skip>
						<skipDeploy>true</skipDeploy>
					</configuration>
				</plugin>

				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.holoeverywhere</groupId>
										<artifactId>resbuilder</artifactId>
										<versionRange>${project.version}</versionRange>
										<goals>
											<goal>build</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<execute />
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>
	<profiles>
		<profile>
			<id>release</id>
			<activation>
				<property>
					<name>performRelease</name>
					<value>true</value>
				</property>
				<file>
					<exists>${project.basedir}/AndroidManifest.xml</exists>
				</file>
			</activation>
			<build>
				<pluginManagement>
					<plugins>
						<plugin>
							<groupId>com.jayway.maven.plugins.android.generation2</groupId>
							<artifactId>android-maven-plugin</artifactId>
							<extensions>true</extensions>
							<executions>
								<execution>
									<id>manifestUpdate</id>
									<phase>initialize</phase>
									<goals>
										<goal>manifest-update</goal>
									</goals>
								</execution>
							</executions>
							<configuration>
								<manifest>
									<versionName>${project.version}</versionName>
									<versionCodeUpdateFromVersion>true</versionCodeUpdateFromVersion>
								</manifest>
							</configuration>
						</plugin>
					</plugins>
				</pluginManagement>
			</build>
		</profile>
	</profiles>
</project>
