Fixing gradle build error

Status Job ID Name Coverage
  Build
failed #38568
minecraft
build_mod

00:28

 
Build build_mod
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.

For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 26s
10 actionable tasks: 10 executed
ERROR: Job failed: exit status 1