Gradle publishing use rsync instead of scp

This commit is contained in:
Andrea Boriero 2022-05-06 15:46:19 +02:00 committed by Andrea Boriero
parent c43fa6b4d9
commit 1bd4d572b4
1 changed files with 2 additions and 2 deletions

View File

@ -52,8 +52,8 @@ public abstract class PublishDescriptorTask extends DefaultTask {
final String jsonPath = jsonFile.get().getAsFile().getAbsolutePath();
getProject().exec( (exec) -> {
exec.executable( "scp" );
exec.args( jsonPath, url );
exec.executable( "rsync" );
exec.args( "--port=2222", "-z", jsonPath, url );
} );
}
}