From eac1c155e3e81a7b472cf6ef7667dcb4282b55d3 Mon Sep 17 00:00:00 2001 From: Shagen Ogandzhanian Date: Tue, 17 Aug 2021 14:35:43 +0200 Subject: [PATCH] Fail if module is referring to a non-existent file path --- web/settings.gradle.kts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/settings.gradle.kts b/web/settings.gradle.kts index aede7d682c..7519819a85 100644 --- a/web/settings.gradle.kts +++ b/web/settings.gradle.kts @@ -26,7 +26,11 @@ pluginManagement { fun module(name: String, path: String) { include(name) - project(name).projectDir = file(path) + val projectPath = file(path) + if (!projectPath.exists()) { + throw AssertionError("file $path does not exist") + } + project(name).projectDir = projectPath }