Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build doesn't work #18

Open
xylifyx2 opened this issue Sep 15, 2014 · 1 comment
Open

Build doesn't work #18

xylifyx2 opened this issue Sep 15, 2014 · 1 comment

Comments

@xylifyx2
Copy link

Why is it that build system except from maven doesn't work out of the box?

erikmartino:maven-plugins emartino$ git show
commit 5737b64
...

erikmartino:maven-plugins emartino$ bash build.sh

Running Gradle [1.6], Groovy [1.8.6], Java [1.7.0_25]
Building [:maven-plugins:unspecified]
:clean
:codenarc
[ant:codenarc] log4j:WARN No appenders could be found for logger (org.codenarc.ant.CodeNarcTask).
[ant:codenarc] log4j:WARN Please initialize the log4j system properly.
[ant:codenarc] log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
:codenarc FAILED

FAILURE: Build failed with an exception.

  • Where:
    Script 'http://evgenyg.artifactoryonline.com/evgenyg/libs-releases-local/CodeNarc.gradle' line: 78

  • What went wrong:
    Execution failed for task ':codenarc'.

    java.lang.AssertionError: No such rule named [MultipleUnaryOperators]. . Expression: ruleClass. Values: ruleClass = null

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 7.799 secs

@evgeny-goldin
Copy link
Owner

Hi, the online set of Codenarc rules has moved since I used this project. https://github.com/evgeny-goldin/maven-plugins/blob/master/codenarc.groovy - this files references an up-to-date version of rules, but the CodeNarc version used isn't up-to-date.

https://github.com/evgeny-goldin/maven-plugins/blob/master/build.gradle references http://evgenyg.artifactoryonline.com/evgenyg/libs-releases-local/CodeNarc.gradle which uses CodeNarc 0.19 while the latest one is 0.21 so older CodeNarc fails to work with newer ruleset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants