Search in sources :

Example 1 with FetchGitHubContributorsTask

use of org.shipkit.gradle.notes.FetchGitHubContributorsTask in project shipkit by mockito.

the class GitHubContributorsPlugin method apply.

public void apply(final Project project) {
    final ShipkitConfiguration conf = project.getPlugins().apply(ShipkitConfigurationPlugin.class).getConfiguration();
    final FetchGitHubContributorsTask task = TaskMaker.task(project, FETCH_CONTRIBUTORS, FetchGitHubContributorsTask.class, new Action<FetchGitHubContributorsTask>() {

        @Override
        public void execute(final FetchGitHubContributorsTask task) {
            task.setDescription("Fetch info about all project contributors and store it in file");
            task.setOutputFile(contributorsFile(project));
            task.setEnabled(conf.getTeam().getContributors().isEmpty());
            task.setIgnoredContributors(conf.getTeam().getIgnoredContributors());
        }
    });
    task.setDescription("Fetch info about all project contributors from GitHub and store it in file");
    task.setApiUrl(conf.getGitHub().getApiUrl());
    task.setReadOnlyAuthToken(conf.getGitHub().getReadOnlyAuthToken());
    task.setRepository(conf.getGitHub().getRepository());
}
Also used : ShipkitConfiguration(org.shipkit.gradle.configuration.ShipkitConfiguration) ShipkitConfigurationPlugin(org.shipkit.internal.gradle.configuration.ShipkitConfigurationPlugin) FetchGitHubContributorsTask(org.shipkit.gradle.notes.FetchGitHubContributorsTask)

Aggregations

ShipkitConfiguration (org.shipkit.gradle.configuration.ShipkitConfiguration)1 FetchGitHubContributorsTask (org.shipkit.gradle.notes.FetchGitHubContributorsTask)1 ShipkitConfigurationPlugin (org.shipkit.internal.gradle.configuration.ShipkitConfigurationPlugin)1