Skip to content

Instantly share code, notes, and snippets.

@Audhil
Created April 23, 2019 11:52
Show Gist options
  • Save Audhil/bc91df078299324e7f5fc496be227323 to your computer and use it in GitHub Desktop.
Save Audhil/bc91df078299324e7f5fc496be227323 to your computer and use it in GitHub Desktop.
clean task -> which prevents ant.props, build.xml, and library.xml from getting deleted on "Clean Project" -> add this in "project_dir/build.gradle"
task clean(type: Delete) {
delete fileTree(rootProject.buildDir) {
exclude 'ant.properties', 'build.xml', 'library.xml'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment