0

Below is a code snippet and below that is the error. Am I doing something wrong that's obvious? I'm very new to Grapes.

   @Grab('com.microsoft:ms-sql-server-jdbc-dependencies')
    GrabConfig(systemClassLoader=true)
    import groovy.sql.Sql

    println "Hello World"

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: cfwdUpdate.groovy: 1: You defined a method without body. Try adding a body, or d eclare it abstract.

at line: 1 column: 1

M. Justin
  • 14,487
  • 7
  • 91
  • 130
Steve
  • 4,457
  • 12
  • 48
  • 89

1 Answers1

3

You missed the @ off

@GrabConfig(systemClassLoader=true)
tim_yates
  • 167,322
  • 27
  • 342
  • 338