It’s also possible that IntelliJ is screwing up the classpath while Gradle gets it right. I’ve had that happen, especially with complex module structures. You’re running this through IntelliJ I’m guessing? Inspect the classpath CLI that is usually hidden when you run stuff