in case anyone is interested, I just finally found...
# multiplatform
e
in case anyone is interested, I just finally found out how to bind gradle code generation task properly at the
build
task:
Copy code
tasks {
    val generateCode by registering(GenerateCode::class)
    kotlin.sourceSets.commonMain { kotlin.srcDir(generateCode.get().outputs.files) }
e
you're eagerly configuring the task there instead of allowing lazy configuration to do its thing
either change the task to have a single output property so you can
Copy code
Kotlin.srcDir(generateCode)
(all the rest of the wiring happens automatically) or use `.map`/`.flatMap` instead of
.get
e
thanks for the tip, dear, I'll try the first option first
Hey @ephemient, just wanted to let you know it works fine, thanks!