Hello Maven Community

I'm facing issue [1] where after upgrading SpockFramework from 2.3 to
2.4 the compilation (maven 3.9.11, m-compiler-p:3.14.1, groovy:
4.0.29) fails with:

    Groovy:General error during canonicalization:
        Transform org.spockframework.compiler.SpockTransform cannot be run

due to Groovy's ReleaseInfo not being populated from resource [2] and
it returns an empty string instead of the real version in [3]. And
(new) Spock 2.4 wants to know that version.

I'm not sure how classworlds work, and why during plugin execution the
Groovy's resource is not available (while regular o.c.groovy classes
are loaded fine), thus I'm not sure where this could/should be
adjusted - in maven-compiler-plugin or in
groovy-eclipse-compiler/groovy-eclipse-batch or if this is somehow
solvable in the final project.

Maybe the reproducer [4] could show it much better than I try to
describe it here.

Regards,

Piotrek

1. https://github.com/spockframework/spock/issues/2282
2. 
https://github.com/apache/groovy/blob/f1c3f38aa3c1c31bdfd0ee7bf2c3e1d8c36a9437/src/main/java/org/codehaus/groovy/util/ReleaseInfo.java#L46
3. 
https://github.com/apache/groovy/blob/f1c3f38aa3c1c31bdfd0ee7bf2c3e1d8c36a9437/src/main/java/org/codehaus/groovy/util/ReleaseInfo.java#L67
4. https://github.com/pzrep/spock-2.4-canonicalization/pull/2

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to