Yeji's Tech Notes
반응형

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()
}
반응형
profile

Yeji's Tech Notes

@Jop

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!