porting some Groovy to Kotlin code, I have an Exec...
# community-support
g
porting some Groovy to Kotlin code, I have an Exec task with the following
Copy code
standardOutput = ByteArrayOutputStream()
    
    ext.output = {
        return standardOutput.toString()
    }
}
what's the correct translation? Because I guess the
output
is a lambda and then lazy, or?
I'm going with
Copy code
ext.set("output", { standardOutput.toString() })