This is a patch release for Gradle 7.4.
See the list of fixed issues: https://docs.gradle.org/7.4.2/release-notes.html
We recommend users upgrade to 7.4.2 instead of 7.4 or another patch release.
Switch your build to use Gradle 7.4.2 by updating your wrapper:
./gradlew wrapper --gradle-version=7.4.2
See the Gradle 7.x upgrade guide to learn about deprecations, breaking changes and other considerations when upgrading to Gradle 7.4.2.