Hi all, i'm trying to setup one of my kotlin proje...
# gradle
t
Hi all, i'm trying to setup one of my kotlin projects with git submodules like so:
Copy code
build.gradle.kts
projects/api
...
projects/core <-- a git submodule
projects/core/gradle.build.kts // file in question
Normally, I have the parent project specify plugin dependency versions. This works fine for everything except for core. Because Core is a submodule I can clone it and work on it in isolation, where in that case I need to specify plugin versions:
kotlin("jvm") version("...") apply(true)
but when core is consumed as a submodule and the parent project specifies the version i get a build error from gradle:
Plugin request for plugin already on the classpath must not include a version
Any suggestions on how to approach/workaround this?
👀 1
n
what happens when you don't include the version?
t
If no version is included I get a build error:
Plugin [id: 'org.jetbrains.kotlin.jvm'] was not found in any of the following sources:
g
If it git submodule, it’s probably a separate gradle project, cannot be included as gradle module in multimodule project (by adding include to settings.gradle), you should probably use composite build instead
t
Will check them out thanks