Skip to content

Instantly share code, notes, and snippets.

@mediavrog
Created February 5, 2014 05:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mediavrog/8817845 to your computer and use it in GitHub Desktop.
Save mediavrog/8817845 to your computer and use it in GitHub Desktop.
Always rebuild / regenerate the BuildConfig file to reflect changes made to buildConfigField
// always rebuild our build config
tasks.whenTaskAdded { task ->
if (task.name ==~ /generate[\w\W]+BuildConfig/) {
task.dependsOn "clean" + task.name.capitalize()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment