lbs-gitea/maptology/master This commit looks good
Added keystore with RSA cert for app store and added maven "release" profile to perform app signing. Integrated release profile into jenkins build to automatically generate signed app as another output (copied onto maptology for master).
183 lines
5.9 KiB
XML
183 lines
5.9 KiB
XML
<?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">
|
|
<parent>
|
|
<artifactId>android</artifactId>
|
|
<groupId>com.maptology</groupId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>com.maptology.android</groupId>
|
|
<artifactId>app</artifactId>
|
|
<name>Maptology Android App</name>
|
|
<description>Source code of the maptology app.</description>
|
|
<packaging>apk</packaging>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.simpligility.maven.plugins</groupId>
|
|
<artifactId>android-maven-plugin</artifactId>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
<profiles>
|
|
<profile>
|
|
<!--
|
|
A profile to sign the app with its release key.
|
|
You can use this profile by calling maven with
|
|
mvn -Prelease -Dkey.password=... <goals>
|
|
Note that you must provide the password to the
|
|
keystore in order to do this.
|
|
-->
|
|
<id>release</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>enforce-property</id>
|
|
<goals>
|
|
<goal>enforce</goal>
|
|
</goals>
|
|
<configuration>
|
|
<rules>
|
|
<requireProperty>
|
|
<property>key.password</property>
|
|
<message>You must set the keystore password with -Dkey.password=</message>
|
|
<regex>(.+)</regex>
|
|
<regexMessage>You must set the keystore password with -Dkey.password=</regexMessage>
|
|
</requireProperty>
|
|
</rules>
|
|
<fail>true</fail>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-jarsigner-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>signing</id>
|
|
<goals>
|
|
<goal>sign</goal>
|
|
<goal>verify</goal>
|
|
</goals>
|
|
<phase>package</phase>
|
|
<inherited>true</inherited>
|
|
<configuration>
|
|
<removeExistingSignatures>false</removeExistingSignatures>
|
|
<archiveDirectory/>
|
|
<includes>
|
|
<include>${project.build.directory}/${project.artifactId}.apk</include>
|
|
</includes>
|
|
<keystore>${$project.basedir}/src/main/key/maptology.jks</keystore>
|
|
<storepass>${key.password}</storepass>
|
|
<keypass>${key.password}</keypass>
|
|
<alias>app</alias>
|
|
<arguments>
|
|
<argument>-sigalg</argument><argument>MD5withRSA</argument>
|
|
<argument>-digestalg</argument><argument>SHA1</argument>
|
|
</arguments>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.simpligility.maven.plugins</groupId>
|
|
<artifactId>android-maven-plugin</artifactId>
|
|
<configuration>
|
|
<release>true</release>
|
|
<apkDebug>false</apkDebug>
|
|
<sign>
|
|
<debug>false</debug>
|
|
</sign>
|
|
<zipalign>
|
|
<skip>false</skip>
|
|
<verbose>true</verbose>
|
|
<outputApk>${project.build.directory}/${project.artifactId}-release.apk</outputApk>
|
|
</zipalign>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>alignApk</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>zipalign</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.maptology.android</groupId>
|
|
<artifactId>feign</artifactId>
|
|
<version>${project.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<!-- this seems to be included in an android support already -->
|
|
<groupId>org.apache.oltu.oauth2</groupId>
|
|
<artifactId>org.apache.oltu.oauth2.common</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.robolectric</groupId>
|
|
<artifactId>robolectric</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.robolectric</groupId>
|
|
<artifactId>shadows-supportv4</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>android</groupId>
|
|
<artifactId>android</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.android.support</groupId>
|
|
<artifactId>appcompat-v7</artifactId>
|
|
<type>aar</type>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.android.support</groupId>
|
|
<artifactId>design</artifactId>
|
|
<type>aar</type>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.android.support</groupId>
|
|
<artifactId>preference-v7</artifactId>
|
|
<type>aar</type>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.android.support</groupId>
|
|
<artifactId>cardview-v7</artifactId>
|
|
<type>aar</type>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.android.support</groupId>
|
|
<artifactId>recyclerview-v7</artifactId>
|
|
<type>aar</type>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.maptology.android</groupId>
|
|
<artifactId>leafless</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>aar</type>
|
|
</dependency>
|
|
</dependencies>
|
|
</project>
|