mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-06-14 03:32:00 +08:00
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
pluginManagement {
|
|
fun isEnabled(value: String?): Boolean = when (value?.lowercase()) {
|
|
"1", "true", "yes", "on" -> true
|
|
else -> false
|
|
}
|
|
val mirrorAcceleration = isEnabled(System.getenv("CHINAMIRRO"))
|
|
|
|
repositories {
|
|
if (mirrorAcceleration) {
|
|
maven("https://maven.aliyun.com/repository/google")
|
|
maven("https://maven.aliyun.com/repository/public")
|
|
maven("https://maven.aliyun.com/repository/gradle-plugin")
|
|
}
|
|
google()
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
}
|
|
|
|
dependencyResolutionManagement {
|
|
fun isEnabled(value: String?): Boolean = when (value?.lowercase()) {
|
|
"1", "true", "yes", "on" -> true
|
|
else -> false
|
|
}
|
|
val mirrorAcceleration = isEnabled(System.getenv("CHINAMIRRO"))
|
|
|
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
|
repositories {
|
|
if (mirrorAcceleration) {
|
|
maven("https://maven.aliyun.com/repository/google")
|
|
maven("https://maven.aliyun.com/repository/public")
|
|
}
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
rootProject.name = "OneKvmAndroidHost"
|
|
include(":app")
|