Wednesday, August 14, 2013

AndroidStudio customize Gradle Classes

In its current implementation, android gradle plugin 5.6, you cannot use androidStudio to customize gradle classes for code quality enabling to handle the fact that the gradle code quality plugins do not recognize the android sourcesets.  So what to do?

You modify a task that uses the antbuilder to call the ant task and than use before and after stuff to put in the right build lifecycle task sequence. Supposedly the integration with jetGradle via the android gradle plugin will happen soon to eliminate having to do this hack not to mention Gradle project itself changing the code quality plugins to recognize android sourcesets sometime in the next release of Gradle.