Skip to content

Instantly share code, notes, and snippets.

@rushabhshah065
Last active June 12, 2019 09:17
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 rushabhshah065/127773db942b598fa9bb0bcb170da7ca to your computer and use it in GitHub Desktop.
Save rushabhshah065/127773db942b598fa9bb0bcb170da7ca to your computer and use it in GitHub Desktop.
Add task for forcefully apply lint before build.
android {
..
applicationVariants.all {
def lintTask = tasks["lint${name.capitalize()}"]
assembleProvider.get().dependsOn.add(lintTask)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment