Update to Groovy v5.0.0 by petebankhead · Pull Request #1983 · qupath/qupath

@petebankhead

Groovy 5 has just been released, and adds lots of features that may become useful to us.

More details at https://groovy-lang.org/releasenotes/groovy-5.0.html

Here's an extremely minor change that can be used to check you've using Groovy 5 and not 4:

```groovy
var file = new File("Hello.png")
println file.baseName
println file.extension
```

(Also snuck in very minor RichTextFX version bump)