diff --git a/idea/idea-fir-performance-tests/build.gradle.kts b/idea/idea-fir-performance-tests/build.gradle.kts index 5e390461d87..76ba999be43 100644 --- a/idea/idea-fir-performance-tests/build.gradle.kts +++ b/idea/idea-fir-performance-tests/build.gradle.kts @@ -37,10 +37,13 @@ sourceSets { "test" { projectDefault() } } -if (kotlinBuildProperties.useFirIdeaPlugin) { - projectTest(parallel = true) { - dependsOn(":dist") - workingDir = rootDir +projectTest(parallel = true) { + dependsOn(":dist") + workingDir = rootDir + doFirst { + if (!kotlinBuildProperties.useFirIdeaPlugin) { + error("Test task in the module should be executed with -Pidea.fir.plugin=true") + } } } diff --git a/idea/idea-fir/build.gradle.kts b/idea/idea-fir/build.gradle.kts index e90d560910b..71c7e9e39f2 100644 --- a/idea/idea-fir/build.gradle.kts +++ b/idea/idea-fir/build.gradle.kts @@ -34,10 +34,13 @@ sourceSets { "test" { projectDefault() } } -if (kotlinBuildProperties.useFirIdeaPlugin) { - projectTest(parallel = true) { - dependsOn(":dist") - workingDir = rootDir +projectTest(parallel = true) { + dependsOn(":dist") + workingDir = rootDir + doFirst { + if (!kotlinBuildProperties.useFirIdeaPlugin) { + error("Test task in the module should be executed with -Pidea.fir.plugin=true") + } } } diff --git a/idea/idea-frontend-fir/build.gradle.kts b/idea/idea-frontend-fir/build.gradle.kts index fc1a1dbdfe5..1f29a646041 100644 --- a/idea/idea-frontend-fir/build.gradle.kts +++ b/idea/idea-frontend-fir/build.gradle.kts @@ -41,10 +41,13 @@ sourceSets { "test" { projectDefault() } } -if (kotlinBuildProperties.useFirIdeaPlugin) { - projectTest { - dependsOn(":dist") - workingDir = rootDir +projectTest { + dependsOn(":dist") + workingDir = rootDir + doFirst { + if (!kotlinBuildProperties.useFirIdeaPlugin) { + error("Test task in the module should be executed with -Pidea.fir.plugin=true") + } } } diff --git a/idea/idea-frontend-fir/idea-fir-low-level-api/build.gradle.kts b/idea/idea-frontend-fir/idea-fir-low-level-api/build.gradle.kts index 1afaef59769..33d9bcee2f3 100644 --- a/idea/idea-frontend-fir/idea-fir-low-level-api/build.gradle.kts +++ b/idea/idea-frontend-fir/idea-fir-low-level-api/build.gradle.kts @@ -44,10 +44,13 @@ sourceSets { "test" { projectDefault() } } -if (kotlinBuildProperties.useFirIdeaPlugin) { - projectTest { - dependsOn(":dist") - workingDir = rootDir +projectTest { + dependsOn(":dist") + workingDir = rootDir + doFirst { + if (!kotlinBuildProperties.useFirIdeaPlugin) { + error("Test task in the module should be executed with -Pidea.fir.plugin=true") + } } }