iml

open fun iml(@DelegatesTo(value = IdeaModuleIml::class) closure: Closure)
open fun iml(action: Action<out Any>)

Enables advanced configuration like tinkering with the output XML or affecting the way existing *.iml content is merged with gradle build information.

For example see docs for IdeaModule.