GROOVY-6008: Extension methods not found by Gradle when used with @TypeChecked or @CompileStatic