AndroidPub
Published in

AndroidPub

Skip several tasks in Gradle quickly

Sometimes we need to build our project without a particular task, like lint, test or findbugs. Other times we just want to improve our gradle build time by skipping long running tasks. There are several ways of doing that, like overriding those tasks using the onlyIf() method to attach a predicate to it,

task myTask {
doLast {
println 'hello world'
}
}

myTask.onlyIf {…

--

--

--

The (retired) Pub(lication) for Android & Tech, focused on Development

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Francisco Riádigos

Francisco Riádigos

Android @LloydsBank. Formerly @SkyUK, @wefoxHQ, @IndraCompany. Co-founder @Chatty

More from Medium

Android Automated Build Publishing to App Center

Android Stack Weekly — Issue #8

Google I/O 22: Android Keynote

Sanely Test Your Android UI Libraries With Paparazzi