Jenkins core currently depends on Groovy 2.4.21 (released on November 29, 2020), which is out of date. Once we upgrade to 3.0.x, the next major version of Groovy is 4.0.x. At the time of this writing, the latest version of Groovy 4.0.x is 4.0.3 (released on June 1, 2022).
Jenkins core currently depends on Groovy 2.4.21 (released on November 29, 2020), which is out of date. Once we upgrade to 3.0.x, the next major version of Groovy is 4.0.x. At the time of this writing, the latest version of Groovy 4.0.x is 4.0.3 (released on June 1, 2022).
As described in jenkinsci/jenkins#5112 (comment) and jenkinsci/jenkins#5116 (comment), the main concern when upgrading Groovy is ensuring that sandboxed script execution remains secure.
Originally reported by basil, imported from: Upgrade Groovy from 3.0.x to 4.0.x