green-code-initiative / ecoCode-android

Reduce the environmental footprint of your Java-based Android apps with SonarQube
https://ecocode.io
GNU General Public License v3.0
54 stars 17 forks source link

CodeNarc version 2.2.3 is not found #31

Closed qonto-android-team closed 1 year ago

qonto-android-team commented 1 year ago

Describe the bug When compiling the project, we run into the following error message:

org.codenarc:CodeNarc:jar:2.2.3 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced

To Reproduce Steps to reproduce the behavior:

  1. Get the project
  2. Compile
  3. Error message appears (compilation fails)

Expected behavior The project should compile.

Screenshots

Screenshot 2023-03-17 at 15 41 44

Additional information Modifying CodeNarc version to 3.2.0 solves the issue.

jhertout commented 1 year ago

Hello, thanks for your issue,

Do not use CodeNarc 3.2.0. CodeNarc 2.2.3 is an internal version build to add our ecoCode Groovy Rules. To build CodeNarc 2.2.3 please follow the steps here: https://github.com/green-code-initiative/ecoCode-mobile/blob/main/INSTALL.md#preliminary-steps-only-android. Note that this step must be done before building the project with maven. You should clean your local git project (with a git clean -dxf) and rebuild from 0 if you want to use CodeNarc for ecoCode.

Now, you may use an other version of CodeNarc if you want but you will not have the Android Groovy rules and I cannot guarantee that the project will totally work.

Regards

dedece35 commented 1 year ago

Hi @qonto-android-team, is it ok for you (to close this issue) ?

thx

qonto-android-team commented 1 year ago

Sure !