我正在使用gradle v3.4并尝试将jar文件发布到nexus。的build.gradle和错误的相关部分复制如下:当从gradle发布到nexus时发生身份验证错误
的build.gradle
repositories {
maven {
credentials {
username project.properties['nexusUser']
password project.properties['nexusPassword']
}
url project.properties['nexusUrl']
}
mavenLocal()
mavenCentral()
jcenter()
}
我得到的,当我运行的gradle 干净或gradle这个依赖 错误
下面的错误Could not resolve all dependencies for configuration ':classpath'.
> Authentication scheme 'all'(Authentication) is not supported by protocol 'file'
个gradle.properties
nexusUrl="http://nexus.something.com"
nexusUser="someone"
nexusPassword="somepassword"
什么是你的属性设置为? – Vampire
更新后 - 我猜这是问题 –