class JavaGeneratorPlugin implements Plugin<Project> {
  @Override
  public void apply(Project project) {<FILL_FUNCTION_BODY>}
}

    // create an extension for the plugin
    project.getExtensions().create(JavaGeneratorPluginExtension.NAME, JavaGeneratorPluginExtension.class, project);
    // register tasks
    project.getTasks().register(JavaGeneratorCrd2JavaTask.NAME, JavaGeneratorCrd2JavaTask.class,
        JavaGeneratorPluginExtension.class);
  
<no_super_class>