Do note that GWT itself is built with ant - there were no ant-specific changes we made to update GWT from Java 7/8 to 11/17/21 that we build with today.
Additionally, the GWT samples that are built with ant had no changes made at all to support newer versions of Java.
Your own usage of GWT might require some changes, but without seeing what you already have and isn't working, as Craig says, we can't guess.