Skip to content

Instantly share code, notes, and snippets.

@nobusue
Created May 3, 2014 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nobusue/11500074 to your computer and use it in GitHub Desktop.
Save nobusue/11500074 to your computer and use it in GitHub Desktop.
Gradle SSH Pluginをオフラインで利用する(Fabricぽいことしたい) ref: http://qiita.com/nobusue/items/e93e928b937c5c8eb4e6
remotes {
localhost {
host = 'localhost'
user = System.properties['user.name']
identity = file("${System.properties['user.home']}/.ssh/id_rsa")
}
}
task showPlatformVersion(type: SshTask) {
session(remotes.localhost) {
execute('uname -a')
execute('cat /etc/*-release || true')
}
}
./gradlew archiveDependencies
./gradlew showPlatformVersion
#distributionUrl=http\://services.gradle.org/distributions/gradle-1.10-all.zip
distributionUrl=../../gradle-1.10-all.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment