Move code quality settings to a new gradle script and use different checkstyle rules for tests.