| The root cause seems to be that the plugin is configured with groovy 1.8.9 as a runtime dependency, but the version of groovy shipped with Jenkins (as of the current release) is 2.4.12:
dependencies {
// NOTE: groovy version included in Jenkins is 1.8.9
runtime 'org.codehaus.groovy:groovy-all:1.8.9'
After updating both the groovy dependency (I added both runtime and compile entries, not sure they're both necessary) and the spock dependency I was able to build a version of the plugin off of master that works. Diff of the changes:
diff --git a/build.gradle b/build.gradle
index 66231ac..789574b 100644
--- a/build.gradle
+++ b/build.gradle
@@ -46,10 +46,11 @@ repositories {
dependencies {
// NOTE: groovy version included in Jenkins is 1.8.9
- runtime 'org.codehaus.groovy:groovy-all:1.8.9'
+ runtime 'org.codehaus.groovy:groovy-all:2.4.12'
+ compile 'org.codehaus.groovy:groovy-all:2.4.12'
compile 'org.yaml:snakeyaml:1.26'
- testCompile 'org.spockframework:spock-core:0.7-groovy-1.8'
+ testCompile 'org.spockframework:spock-core:1.0-groovy-2.4'
jenkinsPlugins 'org.jenkins-ci.plugins:matrix-project:1.6@jar'
}
|