The project builds, and runs, from the CLI fine:
thufir@mordor:~/NetBeansProjects/hello_client$
thufir@mordor:~/NetBeansProjects/hello_client$ gradle clean build;java -jar build/libs/hello_client.jar
:clean
:compileJava
:processResources UP-TO-DATE
:classes
:jar
:assemble
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test UP-TO-DATE
:check UP-TO-DATE
:build
BUILD SUCCESSFUL
Total time: 1.032 secs
hello world
thufir@mordor:~/NetBeansProjects/hello_client$
but Netbeans complains:
Executing: gradle run
Arguments: [-c, /home/thufir/NetBeansProjects/hello_client/settings.gradle]
:run
Cannot execute run because the property "mainClass" is not defined or empty.
BUILD SUCCESSFUL
Total time: 0.17 secs
What's the correct way to set the main class for the Netbeans plugin?