Hello Laurence,
The code in your task should work with the groovy lib in the client application's classpath only. There should be no need to deploy it on any of the nodes to make it work.
Could you let us know in more details what behavior you observed when it didn't work the first time? Did you see any error message or exception in the node, server or client's log file?
I have tested myself with Groovy 1.8.2., simply adding groovy-all-1.8.2.jar to the client's classpath, and it worked without any problem.
On the other hand, the delay you are observing during the first task execution is probabbly due to the class loading that occurs when using the Groovy APIs the first time: it seems that a large number of classes need to be loaded, and the node will attempt to download them from the server's classpath, then in the client's classpath if not found in the server. The JPPF class loader downloads the classes one at a time, when they are needed for execting the tasks. This implies that, if the number of classes to load is large, and the network connection betweeen node/server or server/client is slow, then it may take some time at the first execution.
I hope this helps,
-Laurent