Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find root cause for "The Report.enabled property has been deprecated." warning

I see a warning in my code about a deprecated property Report.enabled

The Report.enabled property has been deprecated. This is scheduled to be removed in Gradle 8.0. 
Please use the required property instead. 
See https://docs.gradle.org/7.4.2/dsl/org.gradle.api.reporting.Report.html#org.gradle.api.reporting.Report:enabled for more details.

That I don't directly use. Is there a way to find out from which dependency is it coming from without the "raw" solution of removing dependencies until the warning is gone?

like image 944
Diego Gómez Olvera Avatar asked Jan 27 '26 09:01

Diego Gómez Olvera


1 Answers

It can be done by using --warning-mode fail --stacktrace with the Gradle command, for instance

./gradlew build --warning-mode fail --stacktrace
like image 111
Diego Gómez Olvera Avatar answered Jan 29 '26 00:01

Diego Gómez Olvera



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!