Groovy 4 on Java 14/17?

Could you please let me know what is the state of support for Groovy 4 on Java 14/17?

Java 14 is not supported by Jenkins. The Java support policy includes the latest information.

Java 17 is currently the oldest Java version supported by Jenkins. Support for Java 25 is being added now. Long term the Jenkins project intends to support only two major Java versions at a time. Java 17 support will likely be dropped by the Jenkins project within the next 12 months.

The Groovy version that is packaged inside Jenkins is currently Groovy 2.4. You can track the progress on upgrading to later versions of Groovy in the following Jira tickets:

The Jenkins project continues to believe strongly that compatibility matters. It matters enough that it is specifically described in the Jenkins governance document. Upgrading to a newer version of Groovy is a major compatibility risk. It will require an enormous amount of work to upgrade to a newer groovy version and retain compatibility. Thus far, no one has volunteered to lead that work.

If you’re using advanced Groovy features, that is a strong indication that you’re using too much Groovy. Refer to the talk by Jesse Glick:

@MarkEWaite we should really discuss in fosdem. Is that possible?

We certainly can discuss it there, though the discussion will depend on the right people being present for the discussion.

Thankyou for the information.