修正其他用户 git clone 后, 没有 ossUsername 等变量导致不能正常加载 gradle 构建脚本的问题

This commit is contained in:
czp 2018-01-24 11:00:07 +08:00
parent 4e6aa8807e
commit 25d4802492

View File

@ -64,6 +64,13 @@ uploadArchives {
signing.signPom(deployment)
}
if (!hasProperty('ossUsername')) {
ext.ossUsername = ''
}
if (!hasProperty('ossPassword')) {
ext.ossPassword = ''
}
repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2/') {
authentication(userName: ossUsername, password: ossPassword)
}