Skip to content

anshulverma/gradle-fileupload-plugin

Repository files navigation

gradle-fileupload

Build Status Download

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.4'
  }
}

// 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'
  }
}

About

A gradle plugin to upload a file to a remote loacation

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages