This project is an example of a Gradle plugin based on the contents of this blog post: http://www.crashlytics.com/blog/defining-custom-pre-and-post-processing-tasks-in-gradle
- plugin : The preprocessor plugin
- exampleProjects/basicExample : An example project with no flavors
- exampleProjects/multiFlavorExample : An example project with multiple flavors
To test, first move to the plugin folder
$ cd plugin
Then install the plugin to your local repository
$ gradle install
Then change directory to an example project
$ cd ../exampleProjects/multiFlavorExample/MultiFlavorExample
Finally, assemble the example project using the installed plugin
$ gradle assemble
You should see "***Hello World!***" in your output.
Questions? Suggestions? Contact @jakeout on Twitter.