Gradle: Consider a flag to fail a build if deprecation warnings are present

Created on 10 Dec 2018  路  3Comments  路  Source: gradle/gradle

Expected Behavior

Have a flag, perhaps --fail-with-deprecations, that fails the build if deprecation warnings are detected with all of them in the output

Current Behavior

There is nothing for this right now

Context

Historically, we have prevented our teams from using deprecated APIs in Gradle, specially if they use Nebula. However, this behavior is usually implemented around deprecation warning messages which change often due to output enhancing in gradle.

It would be ideal if we could have a flag like the one above to fail the build on these cases.

feature contributor core

Most helpful comment

Hi @marcphilipp,

I think --warning-mode=fail would make a lot of sense, at least for us.

All 3 comments

I wonder whether --warning-mode=fail would be confusing. Thoughts?

Hi @marcphilipp,

I think --warning-mode=fail would make a lot of sense, at least for us.

Closing as duplicate of #6491

Was this page helpful?
0 / 5 - 0 ratings