Rearranged the build.gradle script. Changed glassfish plugin version,
after recompiling the plugin to remove tasks.add and use tasks.create
for gradle.