Skip to content

Commit

Permalink
Added Maven build
Browse files Browse the repository at this point in the history
  • Loading branch information
hameno committed Jul 23, 2013
1 parent 18064b7 commit 7be5c17
Show file tree
Hide file tree
Showing 4 changed files with 346 additions and 0 deletions.
131 changes: 131 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
<?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>

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

<groupId>com.devspark.progressfragment</groupId>
<artifactId>parent</artifactId>
<packaging>pom</packaging>

<name>Android ProgressFragment</name>
<description>Implementation of the fragment with the ability to display indeterminate progress indicator when you
are waiting for the initial data.
</description>
<url>http://johnkil.github.io/Android-ProgressFragment/</url>
<inceptionYear>2013</inceptionYear>
<version>1.3-SNAPSHOT</version>

<modules>
<module>progressfragment</module>
<module>sherlockprogressfragment</module>
<module>progressfragment-sample</module>
</modules>

<licenses>
<license>
<name>Apache License Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<properties>
<!-- Project Properties -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.6</java.version>
<android.sdk.platform>16</android.sdk.platform>

<!-- Dependency Versions -->
<android.version>4.1.1.4</android.version>
<android-support.version>13.0.0</android-support.version>
<junit.version>4.10</junit.version>

<!-- Plugin Versions -->
<android-maven-plugin.version>3.6.0</android-maven-plugin.version>
<maven-compiler-plugin.version>3.1</maven-compiler-plugin.version>
<maven-javadoc-plugin.version>2.9.1</maven-javadoc-plugin.version>
<maven-source-plugin.version>2.2.1</maven-source-plugin.version>
</properties>

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

<!-- ActionBarSherlock -->
<dependency>
<groupId>com.actionbarsherlock</groupId>
<artifactId>actionbarsherlock</artifactId>
<version>4.3.1</version>
<type>apklib</type>
<exclusions>
<exclusion>
<groupId>com.google.android</groupId>
<artifactId>support-v4</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencyManagement>

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

<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>${android-maven-plugin.version}</version>
<configuration>
<sdk>
<platform>${android.sdk.platform}</platform>
</sdk>
<lintEnableLibraries>true</lintEnableLibraries>
<lintFailOnError>false</lintFailOnError>
<lintEnableHtml>true</lintEnableHtml>
<lintConfig>${project.basedir}/lint.xml</lintConfig>
<lintSkip>false</lintSkip>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
</build>

</project>
55 changes: 55 additions & 0 deletions progressfragment-sample/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<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>

<parent>
<groupId>com.devspark.progressfragment</groupId>
<artifactId>parent</artifactId>
<version>1.3-SNAPSHOT</version>
</parent>

<artifactId>progressfragment-sample</artifactId>
<packaging>apk</packaging>

<name>Android ProgressFragment (Sample)</name>

<dependencies>
<!-- Android -->
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>support-v4</artifactId>
</dependency>

<!-- Library -->
<dependency>
<groupId>com.devspark.progressfragment</groupId>
<artifactId>progressfragment</artifactId>
<version>${project.version}</version>
<type>apklib</type>
</dependency>
</dependencies>

<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<id>runLint</id>
<phase>compile</phase>
<goals>
<goal>lint</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
76 changes: 76 additions & 0 deletions progressfragment/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<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>

<parent>
<groupId>com.devspark.progressfragment</groupId>
<artifactId>parent</artifactId>
<version>1.3-SNAPSHOT</version>
</parent>

<artifactId>progressfragment</artifactId>
<packaging>apklib</packaging>

<name>Android ProgressFragment (Library)</name>

<dependencies>
<!-- Android -->
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>support-v4</artifactId>
</dependency>
</dependencies>

<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<id>runLint</id>
<phase>compile</phase>
<goals>
<goal>lint</goal>
</goals>
</execution>
</executions>
</plugin>

<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>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<quiet>true</quiet>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
84 changes: 84 additions & 0 deletions sherlockprogressfragment/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<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>

<parent>
<groupId>com.devspark.progressfragment</groupId>
<artifactId>parent</artifactId>
<version>1.3-SNAPSHOT</version>
</parent>

<artifactId>sherlockprogressfragment</artifactId>
<packaging>apklib</packaging>

<name>Android SherlockProgressFragment (Library)</name>

<dependencies>
<!-- Android -->
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>support-v4</artifactId>
</dependency>

<!-- ActionBarSherlock -->
<dependency>
<groupId>com.actionbarsherlock</groupId>
<artifactId>actionbarsherlock</artifactId>
<type>apklib</type>
</dependency>
</dependencies>

<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<id>runLint</id>
<phase>compile</phase>
<goals>
<goal>lint</goal>
</goals>
</execution>
</executions>
</plugin>

<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>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<quiet>true</quiet>
</configuration>
</execution>
</executions>
</plugin>

</plugins>
</build>
</project>

0 comments on commit 7be5c17

Please sign in to comment.