I had a horribly bad performance when running tests in my gradle project. After long hours of debugging and isolating the problem I found out I am using JDK17 for my gradle in IntelliJ.
Running the application:
JDK14 - 7 secs
JDK17 - 8 secs
Running simple integration test (Spring Boot)
JDK14 - 10 secs
JDK17 - 37 secs
Do you have any explanations for this? Using the latest stable gradle (7.4?)