Gradle: Only create checkstyle task if we have configuration