title: Need to block Android run on failed gradle task
body: <p>I have an android project in Android studio that I would like to use detekt as a static code analyzer. I can run detekt through a gradle task and I am able to queue it up before the run of the app by using the Android run configurations, but I cannot seem to get it to stop the run if the task returns an error code.</p>
  <p>I have detekt running from the command line in my build pipeline, but I would like the developer to also fail their run on their development machine.</p>