Czar
01/23/2018, 11:09 AMtasks {
"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:
steps {
"step name" {
doThis()
thenThat()
andAlsoLog()
}
//...
}