mirror of
https://github.com/czp3009/bilibili-api.git
synced 2024-12-21 20:30:28 +08:00
修正其他用户 git clone 后, 没有 ossUsername 等变量导致不能正常加载 gradle 构建脚本的问题
This commit is contained in:
parent
4e6aa8807e
commit
25d4802492
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user