기록
[Gradle] Authentication scheme 'all'(Authentication) is not supported by protocol 'file'
Jop
2022. 6. 23. 10:24
반응형
1. ISSUE LOG
Could not resolve all dependencies for configuration ':classpath'.
> Authentication scheme 'all'(Authentication) is not supported by protocol 'file'
2. Error 위치
gradle.properties
nexusUrl="http://nexus.something.com"
nexusUser="someone"
nexusPassword="somepassword"
build.gradle
repositories {
maven {
url '$nexusUrl'
allowInsecureProtocol = true
credentials {
username = project.nexusUser
password = project.nexusPassword
}
}
mavenCentral()
}
3. resolved
해결방법은 간단했다. 작은따옴표('') 사용해서 문제
변수사용시 큰따옴표("") 사용해야 합니다.
repositories {
maven {
url "$nexusUrl"
allowInsecureProtocol = true
credentials {
username = project.nexusUser
password = project.nexusPassword
}
}
mavenCentral()
}
반응형