[gradle] disable test launcher API usage implementation by default IDEA-232317

GitOrigin-RevId: 68f932e92f87dd8862f0c6c4c6b642efb44507bb
This commit is contained in:
Nikita Skvortsov
2021-02-18 10:18:49 +00:00
committed by intellij-monorepo-bot
parent 6d5fa8ab1d
commit 1f5acb198f
2 changed files with 2 additions and 2 deletions
@@ -134,7 +134,7 @@
description="Enable custom serialization of custom tooling objects"/>
<registryKey key="gradle.tooling.use.external.process" defaultValue="false"
description="Enable running gradle tooling api out of IDE process"/>
<registryKey key="gradle.testLauncherAPI.enabled" defaultValue="true"
<registryKey key="gradle.testLauncherAPI.enabled" defaultValue="false"
description="Allow to use Test Launcher API to run tests when applicable"/>
<commandLineInspectionProjectConfigurator implementation="org.jetbrains.plugins.gradle.GradleCommandLineProjectConfigurator"/>
@@ -140,7 +140,7 @@ public class GradleTaskManager implements ExternalSystemTaskManager<GradleExecut
private static boolean testLauncherIsApplicable(@NotNull List<String> taskNames,
@NotNull GradleExecutionSettings effectiveSettings) {
boolean allowedByRegistry = Registry.is("gradle.testLauncherAPI.enabled", true);
boolean allowedByRegistry = Registry.is("gradle.testLauncherAPI.enabled", false);
boolean allowedByGradleVersion = isSupportedByGradleVersion(effectiveSettings);
boolean allowedByTasksList = taskNames.size() < 2;
return Boolean.TRUE == effectiveSettings.getUserData(GradleConstants.RUN_TASK_AS_TEST)