Hello Adam,

Thanks for your response.

I managed to get one step closer by replacing:

    rule('config/codenarc/MyCustomRuleScript.groovy')

with

    def ruleScript = new File('config/codenarc/MyCustomRuleScript.groovy')
    rule('file:' + ruleScript.canonicalPath)

Now I am having fun with this exception:


* What went wrong:
Execution failed for task ':codenarcMain'.
Cause: org.codehaus.groovy.control.MultipleCompilationErrorsException:
startup failed:
script1000001.groovy: 2: unable to resolve class
org.codenarc.source.SourceCode
 @ line 2, column 1.
   import org.codenarc.source.SourceCode
   ^

script1000001.groovy: 1: unable to resolve class
org.codenarc.rule.AbstractRule
 @ line 1, column 1.
   import org.codenarc.rule.AbstractRule
   ^

2 errors


Why org.codenarc.* is not on the classpath for this task is beyond me.

At this point, I am almost through with codenarc.

Regards,
Adam Wilmore

-- 
View this message in context: 
http://gradle.1045684.n5.nabble.com/code-quality-plugin-location-of-custom-codenarc-rule-tp3373768p3380273.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to