darkmoon_uk
08/27/2019, 4:33 AMval buildConfig : Any? = JsonSlurper().parseText(buildConfigFile.readText())
val defaultInstallDir = buildConfig.SetupDefaults.InstallDir // Not compiling as Kotlin compiler doesn't generate dynamic access code
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.gildor
08/27/2019, 5:25 AM