Using putty's binaries for "uploadArchive" (maven plugin)

(Oliver Kopp) #1

I’m trying to setup “uploadArchives” on a Windows environment. Thereby, I read and wondered whether it’s also possible in gradle to use “plink” and “pscp” instead of “ssh” and “scp”. The reason for this question is that plink and pscp aren’t drop-in replacements for ssh /scp.

(Luke Daley) #2

Hi Oliver,

The uploading is not delegated to ‘ssh’ or ‘scp’. It’s handled by code internally.

Therefore, it won’t be possible to use these other tools.

(Oliver Kopp) #3

If I understand Table 47.3 “Protocol jars for Maven deployment” (at correctly, it is possible to use “org.apache.maven.wagon:wagon-ssh-external:2.2”, which calls “scp” directly. However, pscp does not understand the parameter “-o”.

(Luke Daley) #4

Right, you’d likely have to write your own wagon implementation to integrate with your tools of choice.