If I specify a main class in the build.gradle javafx section, the programs generated by the jfxDeploy task can not be executed. They fail with the message "Unable to find class ...".
I created a minimal example showing the problems. They occur in the 0.4.0 and 0.5.0 snapshots of the javafx-gradle plugin. It worked in 0.3.0.