refreshVersions icon indicating copy to clipboard operation
refreshVersions copied to clipboard

Possibility to configure plugin to skip certain repos

Open emilbutiri opened this issue 2 years ago • 3 comments

⚠️ Is your feature request related to a problem? Please describe

My use case: I have dependencies in a private repo that requires credentials. So for those dependencies, I hardcode their versions. I think it might be useful to be able to specify that such repos should be skipped when trying to resolve the dependency versions.

Also, it might help with this: because of that private repo, I get this comment above each entry in versions.properties: ## failed to check repo https://example.com/artifactory/libs-release/ Cause: http status code 403 HTTP 403 Response.error()

💡 Describe the solution you'd like

A way to configure refreshVersions to skip certain repos. It could be a list of URLs declared e.g. in the refreshVersions {} config block.

🤚 Do you want to develop this feature yourself?

  • [ ] Yes
  • [x] No

emilbutiri avatar Aug 24 '22 10:08 emilbutiri

Hello, do you also get this error line for the libraries that actually are in the repo?

LouisCAD avatar Aug 25 '22 22:08 LouisCAD

Hello, sorry for the late reply. I had a few days off, I haven't touched the project in the meantime, but running the refreshVersions task again today, that error disappeared. For the library in the private repo, I had hardcoded the version before, but today I tested with _ instead and it gets resolved fine as well. Can't understand what was going on the other time.

emilbutiri avatar Aug 31 '22 08:08 emilbutiri

That's strange, please reopen if you get the issue again

jmfayard avatar Sep 13 '22 20:09 jmfayard