I can't seem to figure out how to apply the kotlin...
# gradle
l
I can't seem to figure out how to apply the kotlin (jvm) plugin in subprojects. More specifically I want to be able to set up the compile depencendies that are shared between modules in a root module. Anyone know how I can apply the plugin to use the compile dependencies in this way?
t
create
module-bootstrap.gradle
file with shared content, then in root
build.gradle
add following:
Copy code
allprojects {
   apply from: ""${project.rootDir}/module-bootstrap.gradle"
}
n
for applying it in a submodule:
Copy code
apply {
  plugin("kotlin")
}
sharing dependencies, i assume you do not want to have all modules depend on the root module (that would transitively share the dependecies) other options are making a function in buildSrc or a seperate .gradle(.kts) file that would be applied on those submodules