zhakid / maven

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

maven

4.0.0
<artifactId>artifactID</artifactId>
<packaging>apk</packaging>
<name>HOLA app</name>
<url>https://github.net</url>

<parent>
    <version>1.0</version>
    <groupId>---</groupId>
    <artifactId>---</artifactId>
</parent>

<properties>
    <abs.version>4.4.0</abs.version>
    <dagger.version>1.0.1</dagger.version>
    <otto.version>1.3.4</otto.version>
    <gson.version>2.2.4</gson.version>
    <menudrawer.version>3.0.2</menudrawer.version>
</properties>

<dependencies>
    <dependency>
        <groupId>com.google.android</groupId>
        <artifactId>android</artifactId>
        <scope>provided</scope>
        <version>${android.version}</version>
    </dependency>
    <dependency>
        <groupId>com.google.code.gson</groupId>
        <artifactId>gson</artifactId>
        <version>${gson.version}</version>
    </dependency>
    <dependency>
        <groupId>com.squareup.dagger</groupId>
        <artifactId>dagger</artifactId>
        <version>${dagger.version}</version>
    </dependency>
    <dependency>
        <groupId>com.squareup.dagger</groupId>
        <artifactId>dagger-compiler</artifactId>
        <version>${dagger.version}</version>
        <optional>true</optional>
    </dependency>
    <dependency>
        <groupId>com.jakewharton</groupId>
        <artifactId>butterknife</artifactId>
        <version>1.3.2</version>
    </dependency>
    <dependency>
        <groupId>com.actionbarsherlock</groupId>
        <artifactId>actionbarsherlock</artifactId>
        <version>${abs.version}</version>
        <type>apklib</type>
    </dependency>
    <dependency>
        <groupId>com.squareup.picasso</groupId>
        <artifactId>picasso</artifactId>
        <version>1.1.1</version>
    </dependency>
    <dependency>
        <groupId>net.simonvt.menudrawer</groupId>
        <artifactId>menudrawer</artifactId>
        <version>${menudrawer.version}</version>
        <type>apklib</type>
    </dependency>
    <dependency>
        <groupId>com.github.kevinsawicki</groupId>
        <artifactId>http-request</artifactId>
        <version>5.4</version>
    </dependency>
    <dependency>
        <groupId>com.viewpagerindicator</groupId>
        <artifactId>library</artifactId>
        <version>2.4.1</version>
        <type>apklib</type>
    </dependency>
    <dependency>
        <groupId>com.nineoldandroids</groupId>
        <artifactId>library</artifactId>
        <version>2.4.0</version>
    </dependency>
    <dependency>
        <groupId>com.github.kevinsawicki</groupId>
        <artifactId>android-pusher</artifactId>
        <version>0.6</version>
    </dependency>
    <dependency>
        <groupId>com.github.kevinsawicki</groupId>
        <artifactId>wishlist</artifactId>
        <version>0.9</version>
        <type>apklib</type>
    </dependency>
    <dependency>
        <groupId>com.squareup</groupId>
        <artifactId>otto</artifactId>
        <version>${otto.version}</version>
    </dependency>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.11</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.hamcrest</groupId>
        <artifactId>hamcrest-library</artifactId>
        <version>1.3</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-core</artifactId>
        <version>1.9.5</version>
        <scope>test</scope>
    </dependency>
</dependencies>
<build>
    <plugins>
        <plugin>
            <groupId>com.jayway.maven.plugins.android.generation2</groupId>
            <artifactId>android-maven-plugin</artifactId>
            <dependencies>
                <dependency>
                    <groupId>com.squareup.dagger</groupId>
                    <artifactId>dagger-compiler</artifactId>
                    <version>${dagger.version}</version>
                </dependency>
            </dependencies>
        </plugin>
        <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.3.2</version>
            <configuration>
                <source>1.6</source>
                <target>1.6</target>
            </configuration>
        </plugin>
    </plugins>
</build>
<profiles>
    <profile>
        <id>release</id>
        <!-- via this activation the profile is automatically used when the release is done with the maven release
        plugin -->
        <activation>
            <property>
                <name>performRelease</name>
                <value>true</value>
            </property>
        </activation>
        <build>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <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>true</removeExistingSignatures>
                                <archiveDirectory />
                                <!-- These values can either be placed directly into to file below, or provided
                                via the command line during the build process as such:
                                 "mvn clean release -Dbootstrap.sign.keystore=foobar" ... etc.
                                 This will keep the keystore out of your file so no prying eyes can see.
                                 Also, if you have a ci (Continuous Integration) profile, these values can be
                                 passed in via the build server. -->
                                <keystore>${bootstrap.sign.keystore}</keystore>
                                <alias>${bootstrap.sign.alias}</alias>
                                <storepass>${bootstrap.sign.storepass}</storepass>
                                <keypass>${bootstrap.sign.keypass}</keypass>
                                <verbose>true</verbose>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
                <!-- the signed apk then needs to be zipaligned -->
                <plugin>
                    <groupId>com.jayway.maven.plugins.android.generation2</groupId>
                    <artifactId>android-maven-plugin</artifactId>
                    <inherited>true</inherited>
                    <configuration>
                        <sign>
                            <debug>false</debug>
                        </sign>
                        <zipalign>
                            <skip>false</skip>
                            <verbose>true</verbose>
                            <outputApk>${project.build.directory}/${project.artifactId}-${project.version}-signed-aligned.apk</outputApk>
                        </zipalign>
                        <manifest>
                            <debuggable>false</debuggable>
                        </manifest>
                    </configuration>
                    <executions>
                        <execution>
                            <id>alignApk</id>
                            <phase>package</phase>
                            <goals>
                                <goal>zipalign</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </build>
    </profile>
</profiles>

About