mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-26 15:40:14 +08:00
Add more ways to get bintray_key
This commit is contained in:
parent
40c22f42e5
commit
bb548fc20c
@ -22,6 +22,12 @@ object Bintray {
|
|||||||
return bintray_user
|
return bintray_user
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kotlin.runCatching {
|
||||||
|
@Suppress("UNUSED_VARIABLE", "LocalVariableName")
|
||||||
|
val bintray_user: String by project.rootProject
|
||||||
|
return bintray_user
|
||||||
|
}
|
||||||
|
|
||||||
System.getProperty("bintray_user", null)?.let {
|
System.getProperty("bintray_user", null)?.let {
|
||||||
return it.trim()
|
return it.trim()
|
||||||
}
|
}
|
||||||
@ -53,6 +59,12 @@ object Bintray {
|
|||||||
return bintray_key
|
return bintray_key
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kotlin.runCatching {
|
||||||
|
@Suppress("UNUSED_VARIABLE", "LocalVariableName")
|
||||||
|
val bintray_key: String by project.rootProject
|
||||||
|
return bintray_key
|
||||||
|
}
|
||||||
|
|
||||||
System.getProperty("bintray_key", null)?.let {
|
System.getProperty("bintray_key", null)?.let {
|
||||||
return it.trim()
|
return it.trim()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user