Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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.brantapps</groupId>
- <artifactId>oceanlife</artifactId>
- <version>2.2.1-SNAPSHOT</version>
- <packaging>apk</packaging>
- <name>OceanLife</name>
- <description>OceanLife for Android</description>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <sdk-level.version>17</sdk-level.version>
- <java-compiler.version>1.6</java-compiler.version>
- <platform.version>4.2.2_r2</platform.version>
- <maps.version>17_r3</maps.version>
- <oceanliferover.version>0.0.2-SNAPSHOT</oceanliferover.version>
- <actionbarsherlock.version>4.3.1</actionbarsherlock.version>
- <aspectjrt.version>1.6.10</aspectjrt.version>
- <commons-lang.version>2.5</commons-lang.version>
- <crouton.version>1.8.1</crouton.version>
- <dagger.version>1.0.1</dagger.version>
- <android-maven-plugin.version>3.6.0</android-maven-plugin.version>
- <build-helper-maven-plugin.version>1.7</build-helper-maven-plugin.version>
- <maven-jarsigner-plugin.version>1.2</maven-jarsigner-plugin.version>
- <maven-compiler-plugin.version>3.1</maven-compiler-plugin.version>
- <robolectric.version>2.2-SNAPSHOT</robolectric.version>
- <mockito.version>1.9.5</mockito.version>
- <junit.version>4.8.2</junit.version>
- <hamcrest.version>1.3</hamcrest.version>
- </properties>
- <dependencies>
- <dependency>
- <groupId>com.brantapps</groupId>
- <artifactId>oceanliferover</artifactId>
- <version>${oceanliferover.version}</version>
- <type>jar</type>
- </dependency>
- <dependency>
- <groupId>org.aspectj</groupId>
- <artifactId>aspectjrt</artifactId>
- <version>${aspectjrt.version}</version>
- </dependency>
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- <version>${commons-lang.version}</version>
- </dependency>
- <dependency>
- <groupId>com.google.android</groupId>
- <artifactId>support-v4</artifactId>
- <version>r7</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>android</groupId>
- <artifactId>android</artifactId>
- <version>${platform.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>com.google.android.maps</groupId>
- <artifactId>maps</artifactId>
- <version>${maps.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>com.squareup.dagger</groupId>
- <artifactId>dagger</artifactId>
- <version>${dagger.version}</version>
- </dependency>
- <dependency>
- <groupId>com.actionbarsherlock</groupId>
- <artifactId>actionbarsherlock</artifactId>
- <version>${actionbarsherlock.version}</version>
- <type>apklib</type>
- </dependency>
- <!-- Testing dependencies. -->
- <dependency>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-core</artifactId>
- <version>${hamcrest.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.robolectric</groupId>
- <artifactId>robolectric</artifactId>
- <version>${robolectric.version}</version>
- <scope>test</scope>
- <exclusions>
- <exclusion>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-core</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-all</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-all</artifactId>
- <version>${mockito.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>${junit.version}</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <build>
- <finalName>${project.artifactId}</finalName>
- <sourceDirectory>src/main/java</sourceDirectory>
- <outputDirectory>target/classes</outputDirectory>
- <testOutputDirectory>target/test-classes</testOutputDirectory>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>${maven-compiler-plugin.version}</version>
- <configuration>
- <source>${java-compiler.version}</source>
- <target>${java-compiler.version}</target>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>com.squareup.dagger</groupId>
- <artifactId>dagger-compiler</artifactId>
- <version>${dagger.version}</version>
- </dependency>
- </dependencies>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <executions>
- <execution>
- <!-- use the copy resources instead of resources,
- which adds it to the eclipse buildpath -->
- <phase>initialize</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.basedir}/res</outputDirectory>
- <resources>
- <resource>
- <directory>${project.basedir}/src/templates/res</directory>
- <targetPath>${project.basedir}/res</targetPath>
- <filtering>true</filtering>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>com.jayway.maven.plugins.android.generation2</groupId>
- <artifactId>android-maven-plugin</artifactId>
- <version>${android-maven-plugin.version}</version>
- <extensions>true</extensions>
- <configuration>
- <source>${java-compiler.version}</source>
- <target>${java-compiler.version}</target>
- <manifest>
- <debuggable>true</debuggable>
- </manifest>
- <run>
- <debug>true</debug>
- </run>
- <sdk>
- <platform>${sdk-level.version}</platform>
- </sdk>
- <emulator>
- <avd>Wildfire</avd>
- <wait>40000</wait>
- <options>-no-audio -no-boot-anim -no-window</options>
- </emulator>
- </configuration>
- <executions>
- <execution>
- <id>alignApk</id>
- <phase>package</phase>
- <goals>
- <goal>zipalign</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <profile>
- <id>development</id>
- <activation>
- <property>
- <name>environment</name>
- <value>!production</value>
- </property>
- </activation>
- <properties>
- <deployment.stage>In development</deployment.stage>
- </properties>
- </profile>
- <profile>
- <id>release</id>
- <activation>
- <property>
- <name>performRelease</name>
- <value>true</value>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jarsigner-plugin</artifactId>
- <version>${maven-jarsigner-plugin.version}</version>
- <executions>
- <execution>
- <id>signing</id>
- <goals>
- <goal>sign</goal>
- <goal>verify</goal>
- </goals>
- <phase>package</phase>
- <inherited>true</inherited>
- <configuration>
- <arguments>
- <argument>-sigalg</argument>
- <argument>MD5withRSA</argument>
- <argument>-digestalg</argument>
- <argument>SHA1</argument>
- </arguments>
- <removeExistingSignatures>true</removeExistingSignatures>
- <archiveDirectory />
- <includes>
- <include>${project.build.directory}/${project.artifactId}.apk</include>
- </includes>
- <keystore>${sign.keystore}</keystore>
- <alias>${sign.alias}</alias>
- <storepass>${sign.storepass}</storepass>
- <keypass>${sign.keypass}</keypass>
- <verbose>true</verbose>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <!-- the signed apk then needs to be zipaligned and we
- activate proguard and we run the manifest update -->
- <plugin>
- <groupId>com.jayway.maven.plugins.android.generation2</groupId>
- <artifactId>android-maven-plugin</artifactId>
- <inherited>true</inherited>
- <configuration>
- <release>false</release>
- <sign>
- <debug>false</debug>
- </sign>
- <zipalign>
- <skip>false</skip>
- <verbose>true</verbose>
- <inputApk>${project.build.directory}/${project.artifactId}.apk</inputApk>
- <outputApk>${project.build.directory}/${project.artifactId}-signed-aligned.apk
- </outputApk>
- </zipalign>
- <manifest>
- <debuggable>false</debuggable>
- <versionCodeAutoIncrement>true</versionCodeAutoIncrement>
- </manifest>
- <proguard>
- <skip>true</skip>
- </proguard>
- </configuration>
- <executions>
- <execution>
- <id>manifestUpdate</id>
- <phase>process-resources</phase>
- <goals>
- <goal>manifest-update</goal>
- </goals>
- </execution>
- <execution>
- <id>alignApk</id>
- <phase>package</phase>
- <goals>
- <goal>zipalign</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment