Move checkstyle to common gradle file.