Failing the build on deprecation warnings

I’d like to be proactive in removing deprecation warnings so that I’m able to upgrade Gradle versions more easily. Therefore I’d like to setup the build in CI to fail if Gradle emits any deprecation warnings (the ones whose details are printed when using --warning-mode=all switch).

I googled a bit and looked through this forum but could not find any information on how to achieve it. Am I missing something or is this currently not possible?

for completeness. I think what you’re looking for is running your build with --warning-mode fail


1 Like

GradleTest has that ability.