Compatibility problems using Groovy

已回答

Hello!! 

I've a plugin, Spock data table improvements, that has some compatibility problems due a recent dependency update, as you can see in the following screenshot:

 

This problems are because I've just updated a dependency from my gradle project, 

  • From: 
    compile 'org.codehaus.groovy:groovy-all:2.4.17'
    compile 'org.spockframework.spock:spock-core:spock-1.3'
  • To: 
    compile 'org.codehaus.groovy:groovy:3.0.8'
    compile 'org.spockframework:spock-core:2.0-groovy-3.0'

The plugin works fine, cause I've run it and also all tests are running fine.
Any ideas how can I fix it?
Thanks!

0

Please change to use `implementation` instead of `compile`, otherwise groovy library is not packaged with your plugin's distribution and thus not available in classpath. And since IntelliJ platform still ships with Groovy 2.x, there'll be such (false positive) issues.

0

请先登录再写评论。