IntelliJ unable to recognize groovy String

gradle, groovy, intellij-idea

Solution

Most likely the JDK isn't set correctly in IDEA. Go to `File -> Project Structure -> Project` and check/fix `Project SDK`.

Problem

I am using IDEA - 11.1.1 and gradle - gradle-1.0-milestone-9 (I tried with release candidate 3 also) on windows-7 (if this matters) After importing gradle porject, IDEA complains about String object. I think I am missing something about grrovy configuration. I have also marked - main and test folder as Sources and Test Resources respectively. Did I miss something obvious?

Original source