Jared Schlicht
01/06/2024, 7:01 AMBekzod
01/06/2024, 9:10 AMmbonnin
01/06/2024, 10:51 AMpluginManager.withPlugin("org.jetbrains.kotlin.multiplatform") { }
)
or
• your convention plugin apply it
Might be that Gradle debounces plugin applications but it makes the contract of your convention plugin unclearVampire
01/06/2024, 12:00 PMJavaExtension
. They would both apply the JavaBasePlugin
for example.mbonnin
01/06/2024, 12:21 PMmbonnin
01/06/2024, 12:22 PMVampire
01/06/2024, 4:00 PMmbonnin
01/06/2024, 4:15 PMWith Gradle plugins it is different and also how Gradle itself does it.
I wish Gradle did things differently. In the current state, there's a huge global state of mutable plugin extensions. Who changed
java.targetCompatibility
? Good luck finding out when every plugin has access to this at any point of the lifecycle. With proper APIs, these kind of things could be modeled better but agree we're far from it. And maybe never will if this is designed to work like this.