When attempting to use the Groovy date extension, clearTime(), the error returned is Cannot find matching method java.util.Date#clearTime(). Please check if the declared type is correct and if the method exists.
When I use:
def date = new Date()
date.clearTime()
I get the previous error.
This happens if I use compileStatic or at runtime if I do not.