gradle-fileupload
A gradle plugin to upload a file to a remote loacation
Usage
// first add the maven dependency for the plugin
buildscript {
repositories {
jcenter() // also works with mavenCentral()
}
dependencies {
classpath 'net.anshulverma.gradle:gradle-fileupload-plugin:1.0.2'
}
}
// then apply the plugin
apply plugin: 'net.anshulverma.gradle.fileupload'
// then specify properties for file upload
fileupload {
url = 'http://upload.file.com/destination'
file = "$projectDir/build/distributions/my-build-file.tar.gz"
params.'type' = 'new'
auth {
username = 'admin'
password = 'pass1234'
}
}