build.gradle improved:
- dependency reload interval fixed (was 0 seconds, took ages to compile)
- main class defined correctly (works from netbeans and application plugin)