我已经按照此处的说明配置了一个 S3 支持的 Maven 存储库,例如:
repositories {
maven {
url "s3://myCompanyBucket/maven2"
authentication {
awsIm(AwsImAuthentication) // load from EC2 role or env var
}
}
}
我正在尝试将我的脚本转换为使用 Kotlin DSL 而不是 groovy,但无法找出等效的代码,特别是对于该authentication
部分。
与上面的 Groovy 代码段等效的 Kotlin DSL 是什么?