-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Contributing (Maven)
###Clone the maven-android-sdk-deployer
git clone [email protected]:mosabua/maven-android-sdk-deployer.git
cd maven-android-sdk-deployer
###Install the android artifact
mvn install -P 4.4 -Dplatform.android.groupid=com.google.android -Dplatform.android.artifactid=android
###Install the android support artifact
cd extras/compatibility-v4
mvn install -Dextras.compatibility.v4.groupid=com.google.android -Dextras.compatibility.v4.artifactid=support-v4
###Install the android appcompat artifact
cd ../compatibility-v7-appcompat
mvn install
###Install the support-annotations artifact
cd ../../repositories/android-m2repository
mvn install
###Update settings.xml
This is only needed for the release build.
In your maven home directory, update the settings.xml
file with signing information:
<settings>
<profiles>
<profile>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sign.keystore>PATH_TO_YOUR_RELEASE_KEYSTORE</sign.keystore>
<sign.alias>YOUR_ALIAS</sign.alias>
<sign.keypass>YOUR_KEY_PASSOWRD</sign.keypass>
<sign.storepass>YOUR_STORE_PASSOWRD</sign.storepass>
</properties>
</profile>
</profiles>
</settings>
In the main folder of the project, execute:
mvn install -DskipTests
This will create a jar, sources and javadoc for both projects (lib-core, lib-manipulation and example), apklib for lib-core and lib-manipulation, finally an apk for the example.
In the main folder of the project, execute:
mvn install -DskipTests -P release
This will create a jar, sources and javadoc for both projects (lib-core, lib-manipulation and example), apklib for the lib-core and lib-manipulation, finally a non-debuggable, zipaligned * apk* for the example. All artifacts will be signed with your signature.
Currently testing is not possible with the maven configuration, this is why the -DskipTests
attribute is passed in the scripts above. If you know how can these type of tests can be run with maven, please let us know or better, create a pull request!