Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Always rebuild / regenerate the BuildConfig file to reflect changes made to buildConfigField
// always rebuild our build config
tasks.whenTaskAdded { task ->
if ( ==~ /generate[\w\W]+BuildConfig/) {
task.dependsOn "clean" +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment