settings.gradle.kts (11 lines of code) (raw):

rootProject.name = "apple-notary-api-kotlin-client" gradle.beforeProject { val localPropertiesFile = rootDir.resolve("local.properties") if (!localPropertiesFile.exists()) { val template = rootDir.resolve("local.properties.template") template.copyTo(localPropertiesFile) } val localProperties = java.util.Properties() localProperties.load(localPropertiesFile.inputStream()) localProperties.forEach { (k, v) -> if (k is String) project.extra.set(k, v) } }