package org.shipkit.internal.gradle.release.tasks;

import org.gradle.api.DefaultTask;
import org.gradle.api.file.FileCollection;
import org.gradle.api.tasks.Input;
import org.gradle.api.tasks.TaskAction;
import org.shipkit.gradle.configuration.ShipkitConfiguration;

/**
 * Uploads files as gists to GitHub API.
 * Uses {@link UploadGistsTask#getFilesToUpload()} to determine the files that need to be uploaded.
 * Uploads each of them individually.
 */
public class UploadGistsTask extends DefaultTask {

    @Input private FileCollection filesToUpload;
    @Input private String gitHubApiUrl;
    @Input private String gitHubWriteToken;

    @TaskAction
    public void uploadFilesToGist() {
        new UploadGists().uploadGists(this);
    }

    /**
     * Collection of files for which Gists will be created
     */
    public FileCollection getFilesToUpload() {
        return filesToUpload;
    }

    /**
     * See {@link #getFilesToUpload()}
     */
    public void setFilesToUpload(FileCollection filesToUpload) {
        this.filesToUpload = filesToUpload;
    }

    /**
     * See {@link ShipkitConfiguration.GitHub#getApiUrl()}
     */
    public String getGitHubApiUrl() {
        return gitHubApiUrl;
    }

    /**
     * See {@link ShipkitConfiguration.GitHub#getApiUrl()}
     */
    public void setGitHubApiUrl(String gitHubApiUrl) {
        this.gitHubApiUrl = gitHubApiUrl;
    }

    /**
     * See {@link ShipkitConfiguration.GitHub#getWriteAuthToken()}
     */
    public String getGitHubWriteToken() {
        return gitHubWriteToken;
    }

    /**
     * See {@link ShipkitConfiguration.GitHub#getWriteAuthToken()}
     */
    public void setGitHubWriteToken(String gitHubWriteToken) {
        this.gitHubWriteToken = gitHubWriteToken;
    }
}

@@ -201,70 +201,8 @@
 ion;
-%0Aimport org.shipkit.gradle.configuration.ShipkitConfiguration;
 %0A%0A/*
@@ -1026,32 +1026,65 @@
    * See %7B@link 
+org.shipkit.gradle.configuration.
 ShipkitConfigura
@@ -1100,32 +1100,32 @@
 ub#getApiUrl()%7D%0A
-
      */%0A    publ
@@ -1208,32 +1208,65 @@
    * See %7B@link 
+org.shipkit.gradle.configuration.
 ShipkitConfigura
@@ -1420,32 +1420,65 @@
    * See %7B@link 
+org.shipkit.gradle.configuration.
 ShipkitConfigura
@@ -1600,32 +1600,32 @@
 %0A    %7D%0A%0A    /**%0A
-
      * See %7B@lin
@@ -1626,16 +1626,49 @@
  %7B@link 
+org.shipkit.gradle.configuration.
 ShipkitC

Fix javadoc in UploadGistsTask