hi all, I'm facing I weird compilation problem I'd...
# server
s
hi all, I'm facing I weird compilation problem I'd need some help with: I have some Kotlin code that uses
Math.ceilDiv
which was introduced in Java 18. In the Intellij project I have Java 21 configured and everything works fine. But if I run Gradle from a shell then I get an unresolved reference compilation error. I'm using SDKMAN and it configures automatically Java 21 once I enter the directory. I have also set
sourceCompatibility
,
targetCompatibility
and
jvmTarget
to Java 21 in the build file. Any hint on what's missing would be greatly appreciated, thanks
ok, I upgraded Gradle to 8.6 (I was on 8.5) and the issue is gone. Still, if anything could shed some light on the issue that'd be great. Also not sure if this in the end in a Gradle-specific issue that has nothing to do with kotlin...
h
#gradle maybe?