GRAILS-10448 - revert Spring 4 upgrade code for now

This is a temporary measure to get the Spring 4 variable out of the
equation while build problems are being resolved.
Partially Revert "- fixed build on windows (remove deprecated useAnt gradle groovy options"

Fixing failing tests.  This reverts part of commit 7f970ef234da8e2bcaa463ebd0d8489edac280fb.  It isn't clear yet why this is happening but it appears to be a problem with the way that the classes are being compiled.  Pending further investigation.