Generic mechanism to turn specific deprecation warnings into errors #24588
Labels
a:feature
A new functionality
in:problems
problems api
in:work-validation
task validation, warnings, disable optimizations
When migrating from
7.x
to8.x
, a big chance was that implicit dependencies (docs) go from warnings to errors.As this was a known upcoming change, it would have been really nice to be able to turn those warnings into errors while we were still on
7.x
to ensure a smooth migration to8.0
.But because Gradle does not support this, I accidentally wrote some new gradle code that had implicit dependency issues without realizing it.
The ability to generically opt in to turn any warning into an error would be very useful! Something like this:
If Gradle internally builds a system where every deprecation warning -> error like this had a key (
implicitDependencies
above), then this pattern could be extensible and make future breaking changes easier to opt into early.Ultimately, the goal here with a feature like this is to make it easy to avoid having to wait until
8.0
(or 9.0 in the future) to address these issues.Configuration Cache
This is a side note, but being able to leverage
org.gradle.unsafe.configuration-cache=true
before it was ready was very useful to ensure that our codebase is and stays compatible with the configuration cache. As far as I know, there is no way to do this for generic warnings that become errors.The text was updated successfully, but these errors were encountered: