we can use extra.apply
to set bunch of properties rather than using many by extra.
For example,
// in top of build.gradle.kts
extra.apply {
set("openApiVersion", "123")
set("ktorVersion", "3.0")
}
then we can get those extra values in other kts file.
// In other build.gradle.kts
val ktorVersion = rootProject.extra["ktorVersion"] // ktorVersion would be "3.0"
val openApiVersion = rootProject.extra["openApiVersion"] // openApiVersion would be "123"