Thank you, but problem not fully solved.
As this is implemented, Gradle + Netbeans now expect package name to include main.java.com.myproject, not the normal com.myproject (1)
Now, to find resources, the only way found was to put resources under
main.resources.main.java.com.myproject.
How can I instruct Gradle to accept that the redundant main.java part of the package name is omitted, i.e. like (1), EVEN if the source folder structure is indeed positioned in the src/main/java/ folder?
(Trying to minimize work converting a rather large ant project to Gradle)