gradle-fileupload-plugin

Gradle plugin to upload any file to a remote location.

License

License

Categories

Categories

Gradle Build Tools Net
GroupId

GroupId

net.anshulverma.gradle
ArtifactId

ArtifactId

gradle-fileupload-plugin
Last Version

Last Version

1.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

gradle-fileupload-plugin
Gradle plugin to upload any file to a remote location.
Project URL

Project URL

https://github.com/anshulverma/gradle-fileupload-plugin
Source Code Management

Source Code Management

https://github.com/anshulverma/gradle-fileupload-plugin

Download gradle-fileupload-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/net.anshulverma.gradle/gradle-fileupload-plugin/ -->
<dependency>
    <groupId>net.anshulverma.gradle</groupId>
    <artifactId>gradle-fileupload-plugin</artifactId>
    <version>1.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/net.anshulverma.gradle/gradle-fileupload-plugin/
implementation 'net.anshulverma.gradle:gradle-fileupload-plugin:1.0.4'
// https://jarcasting.com/artifacts/net.anshulverma.gradle/gradle-fileupload-plugin/
implementation ("net.anshulverma.gradle:gradle-fileupload-plugin:1.0.4")
'net.anshulverma.gradle:gradle-fileupload-plugin:jar:1.0.4'
<dependency org="net.anshulverma.gradle" name="gradle-fileupload-plugin" rev="1.0.4">
  <artifact name="gradle-fileupload-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.anshulverma.gradle', module='gradle-fileupload-plugin', version='1.0.4')
)
libraryDependencies += "net.anshulverma.gradle" % "gradle-fileupload-plugin" % "1.0.4"
[net.anshulverma.gradle/gradle-fileupload-plugin "1.0.4"]

Dependencies

compile (3)

Group / Artifact Type Version
org.codehaus.groovy.modules.http-builder : http-builder jar 0.7.2
org.apache.tika : tika-core jar 1.4
org.apache.httpcomponents : httpmime jar 4.5

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.0.4
1.0.3
1.0.2
1.0.1