-
Notifications
You must be signed in to change notification settings - Fork 201
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
Deprecation warnings regarding deprecated dependency declaration #749
Comments
We copy and resolve all of your project configurations. So this is benign if you upgrade as it is being picked up dynamically. Also, I believe if you use the newer Java platform plugins then they lack the legacy configurations so it won’t show up. |
Shows up for me as well with Gradle 8.1.1 and a simple |
The Java plugin was reorganized so it’s usage is discouraged.
|
Ahh, I see what you're saying now. However, it seems to happen also with the
But I guess this is an annoyance we'll just have to live with, and it will go away once these configurations are removed from Gradle? Or would there be a way to tell Gradle to suppress these warnings on the copied configurations? |
At times I’ve thought about a user supplied configuration filter, but never found a use case beyond suppressing a warning. That seemed more errorprone than helpful due to likely misuse. I often run with —quiet (-q) which might hide these, which would be a good workaround for now. |
This adds the 'dependencyUpdates' Gradle task to report on whether the current Java dependency versions are up to date. Because of the warnings currently generated, it's best to run this as: ./gradlew -q dependencyUpdates See: ben-manes/gradle-versions-plugin#749
Hey @ben-manes you might be running with |
There is no Gradle metadata for us to inspect on to ignore those, but you could use |
Could we filter on these? |
We always skip if not isCanBeResolved. You can filter on other configuration attributes, but a deprecated dependency may be unrelated to that. The task predicate gives you the configuration object to decide with. |
Running the plugin (
./gradlew dependencyUpdates --warning-mode all
) with current Gradle 8.0.2 raises the following warnings:With stacktrace enabled: stacktrace.txt
The text was updated successfully, but these errors were encountered: