When opening a gradle project, Netbeans does not honor the gradle version set in Tools/Options/Java/Gradle, instead, it seems to always use gradle 7.0.0.
I have an older project that uses deprecated features, so it needs gradle 4.10.2 to load. Even when I set "Use Standard Gradle Version" to "4.10.2", Netbeans uses gradle 7 to load the project, decides it can't, and makes the project unusable. Pressing the "hammer" button (F11) to build the project correctly uses Gradle 4.10.2 and builds the project.
Attached screenshot shows, after "reload project", how Netbeans uses Gradle 7.0 even with gradle 4.10.2 selected in Options.