Don’t - unless you are prepared to solve issues.
gradle is a build automation tool which can be installed as a dependency for building a custom package.
When you encounter an attempt to update a package called gradle7 it may be caused by a nested dependency in an AUR recipe.
Using the inclusion of custom scripts with system update may or may not - most likely may - create unexplainable issues due to nested AUR recipes or deprecated packages.
Disable pamac’s configuration for automatic update of AUR recipes.
- First update your system
- Second rebuild your custom packages
Educate yourself reading below topics