Groovy in Eclipse not recognizing imports

Three possibilities:

  1. The script is not in a source folder
  2. The script being referred to is not in a source folder.
  3. One or both scripts are in "script folders". Script folders are folders where scripts go. Groovy files in script folders are not sent to the compiler and therefore scripts in script folders cannot reference each other. Check out your script folder at Preferences -> Groovy -> Compiler. Also, as of groovy-eclipse 2.6.1, there are project specific script folders, so also check in your project properties.