Question

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

Was it helpful?

Solution

You missed the @ off

@GrabConfig(systemClassLoader=true)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top