在我的 build.gradle 中 是定义的默认身份验证器, 但是它接缝不能用于存储库下载 我确实收到了 HTTP 错误 407 :-(
如何使默认身份验证器工作?
Authenticator.setDefault(new Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(System.getProperty('username') ?: System.getenv('ART_USER').toLowerCase(), (System.getProperty('password') ?: System.getenv('ART_KEY')).toCharArray());
}
})
buildscript {
ext.kotlin_version = '1.4.32'
repositories {
maven { url "https://some_server:443/artifactory/rim-maven-3rdparty/" }
}