Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19850

Plugin project with samples in one repository

$
0
0

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 :frowning:

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("...") {
      ....
    }
}

Viewing all articles
Browse latest Browse all 19850

Trending Articles