Imany
01/23/2021, 11:58 AMsome-gradle.properties into main gradle.properties and get variables defined in it from settings.gradle.kts or build.gradle.kts
?mbonnin
01/23/2021, 12:01 PM*.properties file can include other *.properties files. Given that they're supposed to contain key/value properties, I doubt this is possible but maybe there's a way.mbonnin
01/23/2021, 12:02 PMsome-gradle.properties file dynamically. Build scripts are code so nothing prevents you to do something like:
val props = Properties()
File("/path/file.properties").inputStream.use { props.load(it) }mbonnin
01/23/2021, 12:03 PMpropsImany
01/23/2021, 12:06 PMMY_VARIABLE and not props["MY_VARIABLE"] or any other waysephemient
01/23/2021, 12:11 PMval MY_VARIABLE: String by propsImany
01/23/2021, 12:12 PMmbonnin
01/23/2021, 12:21 PM