Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.layfones:HelloSftp:1.0.1'
}
SftpClient.with(new SftpUser()).upload(new Request("src", "dst", RESUME)).enqueue(new Callback() {
@Override
public void onProgress(long progress) {
}
@Override
public void onSuccess() {
}
@Override
public void onFailure(Work work, Exception e) {
}
});