concept scp in category gradle

appears as: SCP
Gradle in Action - corrected 9052019

This is an excerpt from Manning's book Gradle in Action - corrected 9052019.

File transfers with SCP

You’ll start by implementing the file transfer via SCP. If you’re familiar with Ant, you may have used the SCP task before. The Ant task provides a nice abstraction on top of a pure Java SSH implementation named JSch (http://www.jcraft.com/jsch/). The next listing shows how to wrap the Ant SCP task with a custom Gradle task declared in the buildSrc project.