@Test public void testWarTasksAvailable() { project.getPlugins().apply(WarPlugin.class); assertThat(tasks.getByName(GwtWarPlugin.TASK_WAR_TEMPLATE), instanceOf(Copy.class)); assertThat(tasks.getByName(GwtWarPlugin.TASK_GWT_DEV), instanceOf(GwtDev.class)); assertThat(tasks.getByName(GwtWarPlugin.TASK_DRAFT_WAR), instanceOf(War.class)); }
@Override public void apply(final Project project) { project.getPlugins().apply(GwtCompilerPlugin.class); project.getPlugins().withType(WarPlugin.class, (warPlugin) -> project.getPlugins().apply(GwtWarPlugin.class)); }
GwtPlugin implements Plugin<Project> { @Override public void apply(final Project project) { project.getPlugins().apply(GwtCompilerPlugin.class); project.getPlugins().withType(WarPlugin.class, (warPlugin) -> project.getPlugins().apply(GwtWarPlugin.class)); } }
GwtPlugin implements Plugin<Project> { @Override public void apply(final Project project) { project.getPlugins().apply(GwtCompilerPlugin.class); project.getPlugins().withType(WarPlugin.class, (warPlugin) -> project.getPlugins().apply(GwtWarPlugin.class)); }  }
GwtPlugin implements Plugin<Project> { @Override public void apply(final Project project) { project.getPlugins().apply(GwtCompilerPlugin.class); project.getPlugins().withType(WarPlugin.class, (warPlugin) -> project.getPlugins().apply(GwtWarPlugin.class)); }  @Override void apply(final Project project); }
GwtPlugin implements Plugin<Project> { @Override public void apply(final Project project) { project.getPlugins().apply(GwtCompilerPlugin.class); project.getPlugins().withType(WarPlugin.class, (warPlugin) -> project.getPlugins().apply(GwtWarPlugin.class)); }  @Override void apply(final Project project);  }