Skip to content

Instantly share code, notes, and snippets.

@skhatri
Created October 31, 2013 02:19
Show Gist options
  • Select an option

  • Save skhatri/7243472 to your computer and use it in GitHub Desktop.

Select an option

Save skhatri/7243472 to your computer and use it in GitHub Desktop.
curl exec plugin task in gradle
import org.gradle.api.tasks.Exec
class Curl extends Exec {
private String curlExecutable = "curl"
String curlArgs = ""
public Curl() {
this.setExecutable(curlExecutable)
}
public void setArguments(String curlArguments) {
this.args = "$curlArguments"?.trim().split(' ') as List
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment