Is there a way to exclude dependencies from being checked? #482
-
|
My company doesn't use semver (🙄), eg: It's extremely slow to use Component Selection / |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
We don't have exclusion rules, likely because its simplest to just force the current version and effectively mark it as up-to-date. For example if you keep a manifest then you could write it as, dependencyUpdates.resolutionStrategy {
force libraries.foobar
} |
Beta Was this translation helpful? Give feedback.
-
|
hmm, I am not sure then. I use this trick in Caffeine because the imported Guava test suite requires a certain dependency version, and it was not worth the effort to migrate after Guava updated its compatibility. That drops the later versions from the report. Note that there our The slow resolution might be due to Gradle checking all of your repositories. You can use repository rules to direct it to the right repo, which might make it faster. Another strategy might be to remove the dependency from the configuration prior to the updates task being run. That might be done by checking if this task is on the I have nothing against a PR to add exclusion support, if you prefer. Since it hasn't come up, I merely suspect there is a trivial workaround that might be good enough for you. |
Beta Was this translation helpful? Give feedback.
-
|
I have this problem as well. My company's versioning is to use I have been running the build for over ten minutes. It is still downloading artifacts from closed PRs from three years ago. It seems to want to download everything. I don't really fully know how Maven/Artifactory expose everything or how Gradle checks it internally, but I would hope that there would be a way to decide whether to consider a version for upgrading based on the current version without getting history first. |
Beta Was this translation helpful? Give feedback.
We don't have exclusion rules, likely because its simplest to just force the current version and effectively mark it as up-to-date. For example if you keep a manifest then you could write it as,