HHH-7996 checkstyle, updated to use libraries.gradle when possible