Groovydoc generation requires Groovy SDK 2.5 and does not work with Java17. The current toolchain and instructions for building the API docs is generally over-complex and should be streamlined to work with Java 17+ and Groovy SDK 3/4.
The Repast javadoc will build OK with Java 17, so it may just be a matter of updating the Groovydoc generation.