Unciv/settings.gradle.kts
SomeTroglodyte b215ac454c
No environment checks in Gradle project configs (#13566)
* Do not make android module existence dependent on flaky checks

* Update developer documentation

* Make android project visible to Gradle Sync V2
2025-07-13 17:06:25 +03:00

24 lines
661 B
Plaintext

import java.util.Properties
pluginManagement {
repositories {
mavenLocal() // To get the compiler plugin locally
gradlePluginPortal() // So other plugins can be resolved
}
}
include("desktop", "core", "tests", "server")
private fun getSdkPath(): String? {
val localProperties = file("local.properties")
return if (localProperties.exists()) {
val properties = Properties()
localProperties.inputStream().use { properties.load(it) }
properties.getProperty("sdk.dir") ?: System.getenv("ANDROID_HOME")
} else {
System.getenv("ANDROID_HOME")
}
}
if (getSdkPath() != null) include("android")