Hi,
Since Jenkins is stopping Java 11 support soon, I am attempting to update my Jenkins Java version. This upgrade requires a Gradle upgrade, which then requires a Groovy upgrade. So, my current details are:
Jenkins 2.452.2 on Java 21
Gradle 8.5
Groovy 3.0.22
jobdsl plugin 1.77
It seems that since Jenkins uses Groovy 2.4, the jobdsl plugin does the same. This means that I am compiling code with Gradle using Groovy 3 and the jobdsl plugin uses Groovy 2, and I am unable to use the plugin successfully because of this. ("Groovy 3 gave some groovy.lang.GroovyObject methods a default implementation, which would prevent Groovy 3 compiled code from running on a previous runtime version. This is probably the cause of your AbstractMethodError." per
https://github.com/groovy/groovy-eclipse/issues/1078 -- my error: "*class* does not define or inherit an implementation of the resolved method 'abstract void setProperty(java.lang.String, java.lang.Object)' of interface groovy.lang.GroovyObject")
Would there be anyway around this error that anyone knows of? I don't understand how Jenkins is putting Java 11 at EOL while still using Groovy 2.4, and both Java 17 and 21 require high enough Gradle versions that depend on Groovy 3.
Thanks for any help!