score:0

update your pom file by adding the below maven repos:

<!-- below 3 groovy dependencies are must to waive the version conflict in runtime
         https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-all -->
        <dependency>
            <groupid>org.codehaus.groovy</groupid>
            <artifactid>groovy-all</artifactid>
            <version>2.4.16</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-xml -->
        <dependency>
            <groupid>org.codehaus.groovy</groupid>
            <artifactid>groovy-xml</artifactid>
            <version>2.4.16</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.codehaus.groovy/groovy -->
        <dependency>
            <groupid>org.codehaus.groovy</groupid>
            <artifactid>groovy</artifactid>
            <version>2.4.16</version>
        </dependency>

score:5

you can "downgrade" the spock dependency. simply add an exclude of "groovy-all" to your spock dependency. then explicitly add a dependency on groovy-all 2.3.7

the exclusion can be added as follows:

<dependency>
    ...
    <exclusions>
        <exclusion>
            <groupid>org.codehaus.groovy</groupid>
            <artifactid>groovy-all</artifactid>
        </exclusion>
    </exclusions>
    ...
</dependency>

Related Query

More Query from same tag