Created
May 3, 2014 15:41
-
-
Save nobusue/11500074 to your computer and use it in GitHub Desktop.
Gradle SSH Pluginをオフラインで利用する(Fabricぽいことしたい) ref: http://qiita.com/nobusue/items/e93e928b937c5c8eb4e6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./gradlew archiveDependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./gradlew showPlatformVersion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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