diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/shell/DefaultGroovyShellRunner.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/shell/DefaultGroovyShellRunner.java index 86386b752a72..9654e6dc3b6a 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/shell/DefaultGroovyShellRunner.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/shell/DefaultGroovyShellRunner.java @@ -69,9 +69,8 @@ public class DefaultGroovyShellRunner extends GroovyShellConfig { public static boolean hasGroovyWithNeededJars(Module module) { GlobalSearchScope scope = GlobalSearchScope.moduleWithDependenciesAndLibrariesScope(module); JavaPsiFacade facade = JavaPsiFacade.getInstance(module.getProject()); - return (facade.findClass("org.apache.commons.cli.CommandLineParser", scope) != null || - facade.findClass("groovyjarjarcommonscli.CommandLineParser", scope) != null) && - facade.findClass("groovy.ui.GroovyMain", scope) != null && + return facade.findClass("org.apache.commons.cli.CommandLineParser", scope) != null && + facade.findClass("org.codehaus.groovy.tools.shell.Main", scope) != null && facade.findClass("org.fusesource.jansi.AnsiConsole", scope) != null; }