title: Accessing libraries in IntelliJ GDSL script
body: <p>I have a Groovy DSL script which uses classes from libraries, for example <code>org.joda.time.LocalDateTime</code>.
  In the actual Groovy DSL script I don't have the import to the class, it's added later when executing the script.
  I wrote a GDSL script for code completion in IntelliJ, but IntelliJ doesn't recognize <code>LocalDateTime</code> class in my script.</p>
  
  <p>When I try to do an import to that class in the GDSL script, I get an error saying that the class cannot be resolved, even though it's on the project's classpath, cause when I run the project's tests for example, it works.</p>
  
  <p>How can I make IntelliJ see classes from external libraries in my DSL script using GDSL script?</p>