How can I change the Kotlin compiler version on IntelliJ?

Jire picture Jire · Oct 22, 2015 · Viewed 19.4k times · Source

In IntelliJ you can set the target Java version like this:

enter image description here

Unfortunately I don't see a place where I can do the same for Kotlin. This makes it not possible for me to use Quasar-Kotlin. I want to switch to M14 even though I have 1.0 beta installed. How can I change back?

After changing the build.gradle file back to M14 I am greeted with compilation errors in my project.

enter image description here

My build.gradle: https://gist.github.com/Jire/5b517fd767ad498bc18f

Answer

Defuera picture Defuera · Oct 8, 2018

Go to Intellij Preferences -> Build, Execution, Deployment -> Kotlin Compiler. Update Language version and Api version to the one you wish.

(You can also use cmd + shift + A and type Kotlin Compiler to get to this preference)

enter image description here