GROOVY-6200: Using @DelegatesTo fails with ant task due to classloading error