mercredi 29 juillet 2015

Grails + Intellijj + spock

I am working on writing some unit test for a grails app controller using spock. When I run the specification I get the following errors. Also all these errors are coming in the .java files. I am a newbie to grails and spock. Any help will be appreciated.

Error:(14, 10) java: annotations are not supported in -source 1.3
  (use -source 5 or higher to enable annotations)

Error:(14, 10) java: annotations are not supported in -source 1.3
  (use -source 5 or higher to enable annotations)

Error:(14, 10) java: annotations are not supported in -source 1.3
  (use -source 5 or higher to enable annotations)
Error:(34, 23) java: generics are not supported in -source 1.3
  (use -source 5 or higher to enable generics)
Error:(79, 31) java: enhanced for loops are not supported in -source 1.3
  (use -source 5 or higher to enable for-each loops)
Error:(133, 41) java: ';' expected

Error:(171, 9) java: illegal start of expression

Aucun commentaire:

Enregistrer un commentaire