Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.41 KB

Issues.adoc

File metadata and controls

25 lines (19 loc) · 1.41 KB

Issues

2020-04-19 - Groovy 3 with Spock

Description

I initially started this Koans with Groovy 3.0.3 and Spock 2.0-M2-groovy-3.0 which looks like it should have worked, but it did not. Everything compiled as expected. I even verified the bytecode for the spock test in the build directory, but for some reason gradle 6.1 would not run the specifications. No error was given, they were just skipped as if they didn’t exist.

I spent the better part of the morning trying slightly different things but never did get it to work properly. I did not try upgrading gradle to 6.3 since there appear to be some breaking changes with IntelliJ IDEA with that version and didn’t want to spend more time shaving this yak than I already have. In reality I don’t need either Groovy 3 or the Milestone of Spock and I spent enough time messing with this issue already.

Resolution

Resolved by downgrading to Groovy 2.5.11 and Spock 1.3-groovy-2.5 which will work fine for this koans. I’m becoming disenchanted with the mess the Groovy space is becoming with respect to jar versions. We now have specific versions of spoc for specific versions of groovy that appear to work with specific versions of Java. This is the exact mess that made me run away from Scala. As I’ve explored other languages (Python in particular) I’ve noticed that this mess is more common than not. It may be that versioning is still a relatively unsolved problem.