I am working on a new Kotlin project based on Maven and JDK 8 using Intellij Idea. Everything is great except after each Maven reimport the compile target switches from 1.8 to 1.6 for some reason.
I literally tried everything from the 2 best answers to the same problem (though from Java world) but nothing worked for me. I also migrated to Gradle with hope of overcoming the problem but that didn't help either. Apart from the mentioned SO question I went over a ton of forums and the advice was always the same as in the mentioned SO answers.
So the question is, how can I prevent Idea from switching the target Java version after reimport?