jvoegele/gradle-android-plugin — pull request #30 by erdi (2011-10-10 18:33:57+00:00)
Title: Discobot patches

This pull request contains changes required by the gradle-discobot-plugin.

Discobot is an effort to run Groovy on Android and part of it is making it simple to build applications written in Groovy for Android. For that purpose we created gradle-discobot-plugin which is built on the top of the gradle-android-plugin. Unfortunatelly we couldn't use it 'as is' because of the fact that when building a Groovy app for Android we need to add some Groovy metadata to the apk between creating the apk and signing it. That's why I split androidPackage into androidPackage and androidSignAndAlign. The other change is that when dexing groovy classes the 'no-local' switch has to be enabled (otherwise dexing fails) and that's why I made dex params configurable on the androidPackage task.

Signing keys are now configured on androidSignAndAlign - as suggested by Ladicek configuration on androidPackage task is still possible but emits a deprecation message. The changes are described in README.md so it shouldn't be such a big problem. It would be also probably nice to warn users in the release notes.

Other changes brought by this pull request:
- the integration tests have been updated to reflect the changes made to the plugin
- signing with the debug key is also asserted in the integration tests now
- AndroidPluginConvention is now more groovy
- gradle wrapper is added so that you don't need gradle installed on your machine to build the plugin

Together with Erik Pragt we hope that the changes made by us will be accepted. Please contact me if you have any questions or remarks about the changes. We would really like to reuse your plugin for Discobot purposes!

For more info on the Discobot project:
* Blog: http://www.jworks.nl/category/discobot-2/
* Github: https://github.com/disco-bot