Gradle publishing use rsync instead of scp
This commit is contained in:
parent
c43fa6b4d9
commit
1bd4d572b4
|
@ -52,8 +52,8 @@ public abstract class PublishDescriptorTask extends DefaultTask {
|
||||||
final String jsonPath = jsonFile.get().getAsFile().getAbsolutePath();
|
final String jsonPath = jsonFile.get().getAsFile().getAbsolutePath();
|
||||||
|
|
||||||
getProject().exec( (exec) -> {
|
getProject().exec( (exec) -> {
|
||||||
exec.executable( "scp" );
|
exec.executable( "rsync" );
|
||||||
exec.args( jsonPath, url );
|
exec.args( "--port=2222", "-z", jsonPath, url );
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue