CodeNarc 1.5 with Grails 4

When I bumped CodeNarc from 1.4 to 1.5 at my Grails 4.x project, I kept getting the “groovy/text/TemplateEngine” error which is reported here:

The suggested solution was not too clear, so here is exactly what you gotta do – add the following to build.gradle:

codenarc "org.codenarc:CodeNarc:${codenarc.toolVersion}"
codenarc 'org.codehaus.groovy:groovy-templates'

Published by Anders Aaberg

IT-development consultant at Nine A/S MSc. Advanced Computer Science @ University of Leeds, UK

Leave a comment

Your email address will not be published. Required fields are marked *