Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32434

Upgrading Groovy version to 2.3+ in job-dsl-plugin

      Is there a plan to upgrade the Groovy version to a newer version (e.g. 2.3+) in job-dsl-plugin?

      The current used version 1.8.9 is probably too old and prevent developer to use new features like Traits.

          [JENKINS-32434] Upgrading Groovy version to 2.3+ in job-dsl-plugin

          The Job DSL plugin must use the same version of Groovy as provided by Jenkins core. An update in Jenkins core is most likely not going to happen in Jenkins 1.x. See the issues linked in JENKINS-21249 for details.

          Daniel Spilker added a comment - The Job DSL plugin must use the same version of Groovy as provided by Jenkins core. An update in Jenkins core is most likely not going to happen in Jenkins 1.x. See the issues linked in JENKINS-21249 for details.

          Fang Yuan added a comment -

          daspilker thx for the link, I had doubt about why this hasn't been done earlier, now it seems more clear for me. So is there an estimated release date for Jenkins 2.x?

          I see now there is potentially a big impact on other plugins by upgrading the Groovy version in Jenkins, but at the same time it's sad since this has been lacking for years already. We'd like to use features like: Extension Modules, DelegatesTo and Traits with job-dsl-plugin, but it seems no chance at the moment...

          Fang Yuan added a comment - daspilker thx for the link, I had doubt about why this hasn't been done earlier, now it seems more clear for me. So is there an estimated release date for Jenkins 2.x? I see now there is potentially a big impact on other plugins by upgrading the Groovy version in Jenkins, but at the same time it's sad since this has been lacking for years already. We'd like to use features like: Extension Modules, DelegatesTo and Traits with job-dsl-plugin, but it seems no chance at the moment...

          See Jenkins 2.0 for an overview of the Jenkins 2.0 activities. There was an initial proposal for a timeline, but I think it's not valid any more.

          Daniel Spilker added a comment - See Jenkins 2.0 for an overview of the Jenkins 2.0 activities. There was an initial proposal for a timeline, but I think it's not valid any more.

          Jenkins 2.0-alpha-3 ships with Groovy 2.4.6. So starting with Jenkins 2.0, you can use Groovy 2.4.6 for your DSL scripts.

          Daniel Spilker added a comment - Jenkins 2.0-alpha-3 ships with Groovy 2.4.6. So starting with Jenkins 2.0, you can use Groovy 2.4.6 for your DSL scripts.

            daspilker Daniel Spilker
            fayndee Fang Yuan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: