[build] Create "local.properties" on build if not exists

This commit is contained in:
Him188 2023-04-21 10:32:42 +01:00
parent d2d2f4844d
commit 111236e0be
No known key found for this signature in database
GPG Key ID: BA439CDDCF652375

View File

@ -31,6 +31,7 @@ pluginManagement {
rootProject.name = "mirai"
runCatching { rootProject.projectDir.resolve("local.properties").let { if (!it.exists()) it.createNewFile() } }
val localProperties = Properties().apply {
rootProject.projectDir.resolve("local.properties").takeIf { it.exists() }?.bufferedReader()?.use {