CompressTreePlugin implements Plugin<Project> { @Override public void apply(Project project) { project.getConvention().create(CompressFileOperations.class, "compressTree", CompressFileOperationsImpl.class, project); }  @Override void apply(Project project);  }
@Test public void apply() { project.getPlugins().apply(CompressTreePlugin.class); }