Created
February 5, 2014 05:23
-
-
Save mediavrog/8817845 to your computer and use it in GitHub Desktop.
Always rebuild / regenerate the BuildConfig file to reflect changes made to buildConfigField
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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