<?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.4.2</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>library</module>
		<module>slidingmenu</module>
		<module>demo</module>
		<module>builder</module>
		<module>translator</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.4.2</tag>
	</scm>

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

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

	<distributionManagement>
		<repository>
			<uniqueVersion>true</uniqueVersion>
			<id>${project.repo.release.id}</id>
			<name>HoloEverywhere Repo</name>
			<url>${project.release.repository.url}</url>
		</repository>
		<snapshotRepository>
			<uniqueVersion>false</uniqueVersion>
			<id>${project.repo.snapshots.id}</id>
			<name>HoloEverywhere Repo Snapshots</name>
			<url>${project.snapshots.repository.url}</url>
		</snapshotRepository>
	</distributionManagement>

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

		<project.repo.release.id>holoeverywhere-repo</project.repo.release.id>
		<project.release.repository.url>https://oss.sonatype.org/service/local/staging/deploy/maven2</project.release.repository.url>

		<project.repo.snapshots.id>holoeverywhere-repo-snapshots</project.repo.snapshots.id>
		<project.snapshots.repository.url>https://oss.sonatype.org/content/repositories/snapshots</project.snapshots.repository.url>

		<java.version>1.6</java.version>
		<abs.version>4.2.0</abs.version>
		<android.version>4.1.1.4</android.version>
		<android.platform>16</android.platform>

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

		<holo.resources>${project.basedir}/resources</holo.resources>
	</properties>

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

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.holoeverywhere</groupId>
					<artifactId>builder</artifactId>
					<version>${project.version}</version>
					<inherited>true</inherited>
					<executions>
						<execution>
							<goals>
								<goal>build</goal>
							</goals>
							<phase>initialize</phase>
						</execution>
					</executions>
					<configuration>
						<outputDir>${project.basedir}/res</outputDir>
						<includeDir>${holo.resources}</includeDir>
					</configuration>
				</plugin>

				<plugin>
					<groupId>org.holoeverywhere</groupId>
					<artifactId>translator</artifactId>
					<version>${project.version}</version>
					<inherited>true</inherited>
					<executions>
						<execution>
							<goals>
								<goal>build</goal>
							</goals>
							<phase>initialize</phase>
						</execution>
					</executions>
					<configuration>
						<outputDir>${project.basedir}/res</outputDir>
						<includeDir>${holo.resources}</includeDir>
					</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.0</version>
					<inherited>true</inherited>
					<extensions>true</extensions>
					<configuration>
						<sdk>
							<platform>${android.platform}</platform>
						</sdk>
						<sign>
							<debug>false</debug>
						</sign>
						<zipalign>
							<skip>true</skip>
						</zipalign>
						<undeployBeforeDeploy>true</undeployBeforeDeploy>
						<proguard>
							<skip>true</skip>
						</proguard>
						<test>
							<skip>true</skip>
						</test>
					</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.12.4</version>
					<inherited>true</inherited>
					<configuration>
						<skip>true</skip>
					</configuration>
				</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>
			</plugins>
		</pluginManagement>
	</build>
</project>
