Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@maxov
Created February 26, 2015 06:58
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 maxov/7d9a59425503547dfcae to your computer and use it in GitHub Desktop.
Save maxov/7d9a59425503547dfcae to your computer and use it in GitHub Desktop.
project.getGradle().buildFinished { result ->
def failure = result.getFailure()
if (failure) {
def cause = failure.getCause().getCause().getCause()
throw new RuntimeException("no, this is what I want it to say!")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment