darkmoon_uk08/27/2019, 4:33 AM
I understand this kind of dynamicism is exactly where Groovy excels (and suffers in equal measure), where Kotlin is meant to be more type safe.
val buildConfig : Any? = JsonSlurper().parseText(buildConfigFile.readText()) val defaultInstallDir = buildConfig.SetupDefaults.InstallDir // Not compiling as Kotlin compiler doesn't generate dynamic access code
gildor08/27/2019, 5:25 AM