codewars/runner

Add Groovy 4

Opened this issue · 1 comments


Groovy 2.5, the currently only version available, came out in 2018 while Version 4 was first released in 2022 and is currently getting new updates. As of writing this, the newest version was released in June 2024. The newer versions of Groovy 4 support Java 17, which is also the newest Java Version supported on Codewars. Due to being compatible with JDK 16+, it brings a lot of nice features from Java:

2 Other things that would help with a newer Groovy version, especially for writing Test Cases:

  • ArrayList.shuffled() to both shuffle a list and return it afterwards
  • Random.nextInt(int origin, int bound). Currently, a workaround like min + Random.nextInt(max) or random.nextInt(max + 1 - min) + min is required to achieve the same effect