BerGer23 / gradle-plugin-example

Example Gradle plugin defining custom pre and post processor tasks.

Home Page: http://www.crashlytics.com/blog/defining-custom-pre-and-post-processing-tasks-in-gradle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image

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

What's here:

  • plugin : The preprocessor plugin
  • exampleProjects/basicExample : An example project with no flavors
  • exampleProjects/multiFlavorExample : An example project with multiple flavors

How to use:

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.

Contact

Questions? Suggestions? Contact @jakeout on Twitter.

About

Example Gradle plugin defining custom pre and post processor tasks.

http://www.crashlytics.com/blog/defining-custom-pre-and-post-processing-tasks-in-gradle

License:Apache License 2.0