Skip to content

Commit

Permalink
Update settings.gradle.kts (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
portlek authored Aug 26, 2024
1 parent 09f9daf commit 106b49c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ include(
"common",
"redis",
"jackson",
"kotlin-extensions",
"kotlin-coroutines",
"kotlin-protobuf"
)

project(":kotlin-extensions").projectDir = file("kotlin/extensions")
registerInnerModule("kotlin", "extensions")

project(":kotlin-coroutines").projectDir = file("kotlin/coroutines")
registerInnerModule("kotlin", "coroutines")

project(":kotlin-protobuf").projectDir = file("kotlin/protobuf")
registerInnerModule("kotlin", "protobuf")

private fun registerInnerModule(vararg paths: String) {
val moduleName = paths.joinToString("-")
include(moduleName)
project(":$moduleName").projectDir = file(paths.joinToString("/"))
}

0 comments on commit 106b49c

Please sign in to comment.