From 34c0d67a1d7431ce7013ab02a42e4c2d56b8e127 Mon Sep 17 00:00:00 2001 From: Shagen Ogandzhanian Date: Mon, 31 May 2021 14:37:41 +0200 Subject: [PATCH] [build] Simplify module creation in web --- web/settings.gradle.kts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/web/settings.gradle.kts b/web/settings.gradle.kts index 1b62034d9bb..a4bdc969060 100644 --- a/web/settings.gradle.kts +++ b/web/settings.gradle.kts @@ -20,12 +20,12 @@ pluginManagement { } } -include("web-core") -include("web-widgets") -include("web-integration-core") -include("web-integration-widgets") +fun module(name: String, path: String) { + include(name) + project(name).projectDir = file(path) +} -project(":web-core").projectDir = file("$rootDir/core") -project(":web-widgets").projectDir = file("$rootDir/widgets") -project(":web-integration-core").projectDir = file("$rootDir/integration-core") -project(":web-integration-widgets").projectDir = file("$rootDir/integration-widgets") +module(":web-core", "$rootDir/core") +module(":web-widgets", "$rootDir/widgets") +module(":web-integration-core", "$rootDir/integration-core") +module(":web-integration-widgets", "$rootDir/integration-widgets")