From 106b49ca805fe14fe75e7c0dbb78732b0a0961a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hasan=20Demirta=C5=9F?= Date: Mon, 26 Aug 2024 15:23:56 +0300 Subject: [PATCH] Update settings.gradle.kts (#38) --- settings.gradle.kts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/settings.gradle.kts b/settings.gradle.kts index 0848e1b..41c887f 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -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("/")) +}