Re: [Codenarc-user] Groovy version for compiling analyzed code
Brought to you by:
chrismair
From: Piotr B. <pbe...@gm...> - 2014-07-31 06:59:42
|
Ok, now I understand. Thanks for your reply! Piotr On Thu, Jul 31, 2014 at 2:23 AM, Chris Mair <cm...@gm...> wrote: > I'm not sure how to configure the version of Groovy used for that plugin. > Is that: > http://docs.codehaus.org/display/SONAR/Groovy+Plugin > > Maybe you can ask in that plugin issue tracker or email the project owner. > > CodeNarc is built with Groovy 1.7, but that is the minimum version. That > being said, new versions of Groovy do occasionally introduce breaking > changes in CodeNarc, and that is probably the case with new Java versions > as well.. I have not tried using the diamond operator myself yet. > > Chris > > > On Tue, Jul 29, 2014 at 2:03 PM, Piotr Betkier <pbe...@gm...> wrote: > >> 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 >> >> >> ------------------------------------------------------------------------------ >> Infragistics Professional >> Build stunning WinForms apps today! >> Reboot your WinForms applications with our WinForms controls. >> Build a bridge from your legacy apps to the future. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk >> _______________________________________________ >> Codenarc-user mailing list >> Cod...@li... >> https://lists.sourceforge.net/lists/listinfo/codenarc-user >> >> > |