public static void requireRootProject(final Project project, final Class<?> clazz) { requireRootProject(project, clazz, null); }
public static void requireRootProject(final Project project, final Class<?> clazz) { requireRootProject(project, clazz, null); }
@Override public void apply(Project project) { ProjectUtil.requireRootProject(project, this.getClass(), "This is needed so that we don't invoke git commands multiple times, per each submodule."); identifyTask = TaskMaker.task(project, IDENTIFY_GIT_ORIGIN_TASK, IdentifyGitOriginRepoTask.class, new Action<IdentifyGitOriginRepoTask>() { public void execute(IdentifyGitOriginRepoTask t) { t.setDescription("Identifies current git origin repo."); } }); //Due to gnarly dependencies between plugins and tasks, we really need to apply this plugin after we declared the task //Trust me, it's all good :-) project.getPlugins().apply(ShipkitConfigurationPlugin.class); }
@Override public void apply(Project project) { ProjectUtil.requireRootProject(project, this.getClass(), "This is needed so that we don't invoke git commands multiple times, per each submodule."); identifyTask = TaskMaker.task(project, IDENTIFY_GIT_ORIGIN_TASK, IdentifyGitOriginRepoTask.class, new Action<IdentifyGitOriginRepoTask>() { public void execute(IdentifyGitOriginRepoTask t) { t.setDescription("Identifies current git origin repo."); } }); //Due to gnarly dependencies between plugins and tasks, we really need to apply this plugin after we declared the task //Trust me, it's all good :-) project.getPlugins().apply(ShipkitConfigurationPlugin.class); }
@Override public void apply(Project project) { ProjectUtil.requireRootProject(project, this.getClass()); project.getPlugins().apply(TravisPlugin.class); project.getPlugins().apply(GradlePortalReleasePlugin.class); } }
@Override public void apply(Project project) { ProjectUtil.requireRootProject(project, this.getClass()); project.getPlugins().apply(TravisPlugin.class); project.getPlugins().apply(GradlePortalReleasePlugin.class); } }
public void apply(final Project project) { ProjectUtil.requireRootProject(project, this.getClass()); project.getPlugins().apply(ShipkitBasePlugin.class); project.getPlugins().apply(PomContributorsPlugin.class); project.allprojects(subproject -> subproject.getPlugins().withId("java", plugin -> { subproject.getPlugins().apply(JavaBintrayPlugin.class); })); } }
public void apply(final Project project) { ProjectUtil.requireRootProject(project, this.getClass()); project.getPlugins().apply(ShipkitBasePlugin.class); project.getPlugins().apply(PomContributorsPlugin.class); project.allprojects(subproject -> subproject.getPlugins().withId("java", plugin -> { subproject.getPlugins().apply(JavaBintrayPlugin.class); })); } }