Skip to content

Instantly share code, notes, and snippets.

@lifuzu
Created December 12, 2013 00:36
Show Gist options
  • Save lifuzu/7921275 to your computer and use it in GitHub Desktop.
Save lifuzu/7921275 to your computer and use it in GitHub Desktop.
Upload of file via SSH protocol
//Upload of file via SSH
//build.gradle
configurations {
deployerJars
}
repositories {
mavenCentral()
}
dependencies {
deployerJars "org.apache.maven.wagon:wagon-ssh:2.2"
}
uploadArchives {
repositories.mavenDeployer {
configuration = configurations.deployerJars
repository(url: "scp://repos.mycompany.com/releases") {
authentication(userName: "me", password: "myPassword")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment