Open tats-u opened 1 year ago
If you check what the build pipeline is doing, you will see that you can override the property using -PjavaVersion=17
to build on Java 17:
https://github.com/fwcd/kotlin-language-server/blob/main/.github/workflows/build.yml#L27
We should probably at one point in the future make Java 17 the default, but unsure when that might be.
Are any additional settings required for IntelliJ (Community) without the target JDK setting to 11?
IntelliJ? No clue, I avoid that shit when I can 😛
My main guess would be to edit your run configurations. Next to your run and debug buttons there should be a drop down menu or something with a button called Edit configurations
. Then you should be able to put in the commands and arguments (e.g, :server:build -PjavaVersion=17
).
Without JDK 11, even auto-completion seems to fail. I feel like registering tasks isn't related to that issue. I'll resign myself to JDK 11.
https://github.com/fwcd/kotlin-language-server/blob/bc5309964d24053dd80aed193975629c3e8546ca/gradle.properties#L2
./gradlew
fails due to this line. Support Java 17. Java 11 will be EOL in this (Oracle JDK's Premier Support) or next year (Temurin).↓ Java 17 or 20
↓ Java 11