https://kotlinlang.org logo
Title
f

FunkyMuse

03/14/2022, 5:05 PM
Hey guys, is it possible to parse application.conf inside gradle.kts somehow?
b

Big Chungus

03/14/2022, 8:24 PM
Sure, just add any hocon java lib to buildSrc and parse it like in any other java app
f

FunkyMuse

03/14/2022, 10:33 PM
Thank you, I meant inside build.gradle.kts not in buildSrc? But i doubt it makes a difference to what you've said since it's the same?
b

Big Chungus

03/14/2022, 11:13 PM
Well you declare dependencies in buildSrc to make them available in your buildscripts
f

FunkyMuse

03/15/2022, 10:06 PM
For those who would parse them in the future, make sure you remove prefix and suffix double quotes as it does parse them as strings but with additional quotes