I already publish my maven artifacts to that repository via scp. Now I am trying to make that repository only accessible via SSH. In this way we could limit the access to the repository to only the people that publish their public key.
See “Example 52.4. Upload of file via SSH” in the Gradle User Guide. However, I think that ‘configuration = configurations.deployerJars’ has to be ‘addProtocolProviderJars(configurations.deployerJars)’.
No, we don’t plan on supporting Maven wagons for resolving. The Maven Wagon SSH provider implements resolution via SFTP and SCP.
As of Gradle 2.0, there is native support for SFTP-based resolution from a repository (ivy or maven). If you’d like to assist by contributing support for SCP-based resolution, that would be great.
Actually I need support for S3 protocol. I thought that if Gradle supported Maven wagons for resolving it would be a generic solution for both SSH and S3.
I’m using https://github.com/spring-projects/aws-maven for publishing artifacts and it works flawlessly with Gradle. However uploading to S3 is pretty useless when it is not possible to resolve using the same protocol.