Improve gradle error format.

Added rules to detect errors produced by the gradle checkstyle and findbugs
plugins.