title: Groovy startup failed unexpected token
body: <p>Excuse me if this is a silly question, I'm a complete Groovy noob and I'm tearing my hair out.</p>
  
  <p>Trying to run an example groovy script:</p>
  
  <pre><code>@Grab('com.xlson.groovycsv:groovycsv:1.0')
  import static com.xlson.groovycsv.CsvParser.parseCsv
  
  def csv = '''Name:Lastname
  Mark:Andersson
  Pete:Hansen'''
  
  def data = parseCsv(csv, autoDetect:true)
  for(line in data) {
      println "$line.Name $line.Lastname"
  }
  </code></pre>
  
  <p>And getting the following error:</p>
  
  <pre><code>org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, /home/kmcghee/groovy/dev/import_csv/test: 2: unexpected token: import @ line 2, column 1.
     import static com.xlson.groovycsv.CsvParser.parseCsv
  </code></pre>
  
  <p>I've googled a lot on this and it appears to be related to Grapes but I can't pin down the issue. Any ideas?</p>