-
Notifications
You must be signed in to change notification settings - Fork 48
codenarc 2.2.3 referenced but not available on Maven central #170
Comments
hello @jhertout and @olegoaer, What about changelog used in project (https://github.com/cnumr/ecoCode/blob/main/src/codenarc-converter/CodeNarc/CHANGELOG.md) ? it seems that some parts have been copied from original CodeNarc changelog (https://github.com/CodeNarc/CodeNarc/blob/master/CHANGELOG.md until 2.2.0), but for 2.2.1, 2.2.2 and 2.2.3, I don't known what are these changelog modifications. What do you about the correction ? Can we come back to 2.2.0 ? if yes .. I can create a PR with my modifications. |
Hello, do not change the version of CodeNarc we use. It is a custom version which is built in the source of the project using "src/codenarc-converter". We are working on CodeNarc to extract its version from ecoCode in a separate repo to simplify the build but it will be done later. Thanks |
hello @jhertout , thank you for detailed answer. |
hello @dedece35, I think your two suggestions are good. We are thinking of getting our own CodeNarc fork: a simplified version of the original one since we use a small part of the original whole project that is used to create rules on Groovy projects while we only parse build gradles files. Regards. |
Hi @jhertout,
waiting for an other idea, I comment locally codenarc and android-plugin lines in pom.xml |
Have you tried to clean your local maven repo and to clean the git project ? I do not remember how it works exactly but if maven has tried to download CodeNarc one time from the official repo it will retry to use it instead of the one we create locally. |
Indeed, maven uses a local copy (in .m2 directory) if the wanted version exists in it. But if version doesn't exist, maven try to download from maven central and if not OK, tells us that the version was not found. |
I worked on the project two weeks ago and I had the same problem. The "git clean -dxf" command did the job for me. |
Hi, You don't have to manually execute step 4 of https://github.com/cnumr/ecoCode/tree/main/src/codenarc-converter, during hackaton a script was created to do this automatically. You can follow the step Using one of this script : Agreed with @dedece35 to remove CodeNarc from EcoCode :) |
I confirm that if I execute It's just confusing to have the real maven dependency used with a version that not really exists in maven central ... but generated by our process. Thus, we will discuss internally about to remove CodeNarc project from EcoCode plugin and create a real versionning system for it (and stored in maven central). I close the issue. |
Dear ecoCode maintainers,
I noticed that currently the pom.xml files in modules android-plugin and codenarc-converter are referencing codenarc 2.2.3 - however on Maven central the latest available 2.x version is 2.2.0
BR Christina
The text was updated successfully, but these errors were encountered: