Gradle makes no pretence as being either declarative or iterative, but embraces both. As much of a specification is as declarative as possible, but where imperative is needed it is available as Gradle specificationsare Groovy scripts with the Gradle internal DSL.
Do you have some link I can read about this ? This sounds like a very nice project !