Gradle SSH Plugin is a Gradle plugin providing remote command execution and file transfer features for continuous delivery.
Please see Gradle SSH Plugin web site for getting started or user guide.
Please open your issue or pull request. Any issue is welcome.
Run Gradle wrapper.
./gradlew buildCurrently 1 test will be failed on Mac due to lack of support hashed known hosts. See #69.
We can run acceptance tests to verify behavior of the plugin on Gradle environment.
Prerequisite:
- SSH service must be started on localhost port 22
- Current user must be able to log in with a private key placed at
~/.ssh/id_rsawithout any passphrase - SSH service must accept SFTP subsystem
Upload a built JAR into the local repository and invoke a test.
./gradlew uploadArchives
./gradlew -p acceptance-tests -i testAbove does not contain aggressive tests such as creating users or changing system configration. Invoke with aggressiveTest to run aggressive tests. It is strongly recommended to run on a disposable instance such as Travis CI.
./gradlew -p acceptance-tests -i aggressiveTestPrerequisite:
~/.gradle/gradle.propertiesmust contain- signing.keyId
- signing.secretKeyRingFile
- sonatypeUsername
- sonatypeFullname
- PGP key must be placed at signing.secretKeyRingFile
- Passphrase of key pair must be known
- Password of Sonatype must be known
Invoke the publishing task:
./gradlew publishMavenCentral