Instead of building and running my program in abou...
# gradle
l
Instead of building and running my program in about 10 seconds, just rerunning the code (without a full rebuild, just a few files changed) takes over a minute now.
🧵 2
m
We'll need more details to debug this. Like 2 build scans for an example
I have been running Java 25 for a few weeks now without major issues
Maybe it's just that you're not hitting your cache anymore?
l
Possibly.
I'm clearing all the caches now and trying again, in case something was corrupt.
How do you do a build scan?
m
Add
--scan
at the end of your build
l
Thanks. I'll try and see if I can make sense out of it.
👍 1
l
OK, I figured something out. When running gradlew on its own, it's actually the same performance as with gradle 8.
However, when running the gradle jobs from IDEA, it takes over minute between the message "daemon started" until the "configure project" message. and then another minute before compilation starts.
So i might not directly be a gradle issue, but an IDEA issue.
m
Double check your IDEA Gradle settings. Are they using JAVA_HOME?
Screenshot 2025-11-06 at 15.12.09.png
l
It was using "project sdk 25".
I switched to
/usr/lib/jvm/java-25
and now it's fast.
sonic 1
Thanks a lot!
m
Nice!
l
My application uses Javafx, and I note that before I switched the default Linux JVM to 25 (it was left as 21), the UI flickered before it started.
Then I switched the JVK to 25, and it worked. And this is even though it was actually running Java 25 (becaose in the migration I changed some code to use java 25-specific features)
When I was using the "project 25" in the IDEA settings, when the application started, I had the same flickering.
Was I using a broken version of Java 25?
m
I have no idea sorry. Using different vendors/minor of java 25 will invalidate your builds and that can explain the slowliness. But I have no idea about flickering
l
I wonder if I ended up using a buggered version of java 25 🙂
Anyway, seems to work better now. Thanks.