The source repository is here: https://github.com/ros/diagnostics. Check out the groovy-devel branch and build that.