I build netbeans from master (9f2b595df801547c53292952199609ff3ab9ec99) - this causes maven projects to be recognized as gradle projects (see test-proj.zip for a sample). NetBeans is started with clean userdir and cachedir:
bin/netbeans-dev/bin/netbeans --userdir test-user --cachedir test-cache
The project is opened (I run on JDK 11 and did not install nbjavac):
I reverted c43ee9b5091e16ccd0adfeeb50ebaa0e45be0799 ("
NETBEANS-4867 Fix inconsistent Gradle SubProject Detection (#2411)") locally and this restores behavior to normal:
Something in the referenced commits is to eager to recognize gradle projects.