[Codenarc-user] Groovy version for compiling analyzed code
Brought to you by:
chrismair
From: Piotr B. <pbe...@gm...> - 2014-07-29 18:03:09
|
Hello, I'm trying to use codenarc bundled in a groovy sonar plugin to analyze my groovy 2.3 project. During analysis I get compilation errors because of unexpected tokens, e.g. for diamond syntax from JDK7 (i.e. new List<>()). This led me to checking that codenarc uses groovy version of 1.7 to compile the source code. I couldn't find any information on how to set a different groovy version for codenarc to use during analysis. How do I analyze a project that uses a newer version of groovy? Am I missing something? Thanks, Piotr |