Upgrading your build from Gradle 6.x to the latest
Try running gradle help --scan
and view the deprecations view of the generated build scan.
Run gradle wrapper --gradle-version 7.0
to update the project to 7.0.
2022-06-09 7.4.2
https://docs.gradle.org/current/userguide/upgrading_version_6.html