I’ve wondering whether there’s some recommendation which JSON deserializer to use in Kotlin DSL code when migrating from Groovy DSL code that uses Groovy’s built-in JsonSlurper. If possible, I’d like to avoid introducing some external dependency. Is there some Gradle-internal class I could use instead?
1 Like
Hello @Sebastian_Schuberth ,
How did you answer this question ?
If you managed to solve it, could you share a script sample ?
Thanks
I don’t remember my solution from back then, but by now it seems like you could use import org.jetbrains.kotlin.js.parser.sourcemaps.parseJson
in your build.gradle.kts
file.
1 Like
Thanks for the answer !