I have a project that uses a Gradle multi-project build. Some of the sub-projects are written in Java, other newer ones in Kotlin.
We have one top-level build.gradle file. This file contains following part:
allprojects {
plugins.withType(JavaPlugin) {
// All the stuff that all Java sub-projects have in common
...
}
// All the stuff that all sub-projects have in common
...
}
We now would like to introduce common settings for our Kotlin sub-projects, but I could not find out which withType to use.
The build.gradle files of our Kotlin projects start with
plugins {
id "org.jetbrains.kotlin.jvm" version "1.3.0"
}
but neither withType(org.jetbrains.kotlin.jvm) nor withType(KotlinProject) works.
What type do I have to use there? Thanks!