Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After switching to 1.3-groovy-2.5 no tests run error: Nullpointer in org.codehaus.groovy.transform.ASTTransformation #1010

Open
mhuelfen opened this issue Aug 13, 2019 · 0 comments

Comments

@mhuelfen
Copy link

commented Aug 13, 2019

Issue description

I wrote tests for Java8 code (Spring controllers) with using 1.3-groovy-2.4 version of spock-core and spock-spring and everything was fine.

Now we are changing towards to Java11 / groovy 2.5 . So I tried using 1.3-groovy-2.5 but even for minimal tests I get the following error message.

Error:Groovyc: While compiling tests of <project>: Could not instantiate global transform class org.spockframework.compiler.SpockTransform specified at jar:file:/Users/<me>/.m2/repository/org/spockframework/spock-core/1.3-groovy-2.5/spock-core-1.3-groovy-2.5.jar!/META-INF/services/org.codehaus.groovy.transform.ASTTransformation because of exception java.lang.NullPointerException

Additional Environment information

IDE IntelliJ 2019.2

Java/JDK

jdk1.8.0_152

Groovy version

Groovy Version: 2.5.3 JVM: 11.0.2 Vendor: Oracle Corporation OS: Mac OS X

Build tool version

Apache Maven

Apache Maven 3.5.4

Operating System

Mac 10.14 Mojave

IDE

IntelliJ 2019.2

Build-tool dependencies used

Apache Maven

<dependency>
  <groupId>org.spockframework</groupId>
  <artifactId>spock-core</artifactId>
  <version>1.3-groovy-2.5</version>
</dependency>

@mhuelfen mhuelfen changed the title After switching to 1.3-groovy-2.5 no tests run error Nullpointer in org.codehaus.groovy.transform.ASTTransformation After switching to 1.3-groovy-2.5 no tests run error: Nullpointer in org.codehaus.groovy.transform.ASTTransformation Aug 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.