Problems with Kotlin is that it will not create extension functions if you will not use plugins {}. So it means, that you can’t use extensions defined by the plugin in a direct way like in Groovy.
For example in Android world, you cannot use
android {
…
}
I don’t know why the do it in this way
But you can use plugins, but prevent them to apply and then later apply them manually.
Btw. I found a solution. Composite works with plugins, but you need to have plugin id declared in gradle file by
gradlePlugin {
plugins.create("...") {
....
}
}