How to use the default AWS credentials chain for an S3 backed Maven repository in a Gradle build?
问题 According to Gradle documention (Example 50.27), we can use S3 backed Maven repositories with Gradle 2.4. However, the only example given in the docs passes explicit AWS credentials to the S3 repository declaration: repositories { maven { url "s3://someS3Bucket/maven2" credentials(AwsCredentials) { accessKey "someKey" secretKey "someSecret" } } } I need to do the same thing, but I want Gradle to use the DefaultAWSCredentialsProviderChain, from the AWS JDK, instead of explicit credentials.