Which Gradle Fleet smart mode is using? I get an u...
# fleet
n
Which Gradle Fleet smart mode is using? I get an unsupported java version and I can't see a way to tell Fleet to use the default gradlew of my project instead of whatever it's using.
z
You can find the JDK setting in Settings, under the project-specific settings:
For Gradle, it should be using the wrapper your project has, as long as that's a version compatible with your JDK it should work
n
@zsmb my jdk settings seems correct and set to java 22. The project runs well on the terminal.
I am using fleet 1.35.115
a
Try setting the
Copy code
org.gradle.java.home=/path_to_jdk_directory
in gradle.properties file in the project root directory. We have a related issue: FL-12011 Build Import failed and doesn’t say how to fix that
Or try setting an older JDK version for the 1st import from Gradle
n
The gradle.properties java home did not work. Setting java runtime to 21 instead of 22 seems to fix it. I still see the same error dialog as before but when I look at the build output, I don't see any issue in those logs
z
You're trying to use the wrapper in the project, right? What's the Gradle version configured there? For Java 22 to work, it has be at least Gradle 8.7.
n
I am just trying to have smart mode working. My project is working using it's gradlew and it is Gradle 8.7