In kotlin dsl you can do something like: ``` tasks...
# dsl
c
In kotlin dsl you can do something like:
Copy code
tasks {
    "meow" { /* some statements */ }
}
This creates gradle task "meow" with logic from the closure, How would I go about implementing similar thing in my own project dsl? I have inherited a legacy rule engine in groovy, I'm modernizing it now and would like to rewrite it to Kotlin. Basically there are rules which are registered in groovy like:
onStep("step name").doThis().thenThat().andAlsoLog()
I'd like to have this instead:
Copy code
steps {
    "step name" {
        doThis()
        thenThat()
        andAlsoLog()
    }
    //...
}