how to setup gradle warning level?

i have error
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

how to set --warning-mode all for gradle in unreal engine?