Did the root `build.gradle` / `build.gradle.kts` f...
# community-support
j
Did the root
build.gradle
/
build.gradle.kts
file "disappear" in Gradle 8.x? https://docs.gradle.org/current/userguide/multi_project_builds.html
t
No, but project build scripts aren't required, so if the root project has nothing special (i.e. "does nothing") you can either have an empty build script or omit it entirely.
☝️ 1
til 2
j
Thank you! It seems that
gradle init
initializes the project this way; I think that in the past, it created a root
build.gradle.kts
... Anyway, I created the file manually and Gradle picked it up.
For Kotlin projects with more than one sub-project, I think it's not supported to omit the root build script, as one needs to put the Kotlin plugin initialization in the root build script:
Copy code
plugins {
    kotlin("jvm") version "2.0.0" apply false
}
Then, in each subproject-specific build script, we must declare it again without specifying the version.
Copy code
plugins {
    kotlin("jvm")
}