Useful snippets for gradle scripts