JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.73k stars 1.14k forks source link

Compose Gradle Plugin. Compile time check for Java version #117

Open igordmn opened 3 years ago

igordmn commented 3 years ago

Minimal version for Android target should be Java 1.8 Minimal version for Desktop target should be Java 11

If Java has incompatible version we should throw exception with user-friendly message.

AlexeyTsvetkov commented 3 years ago

@igordmn why does the minimal version for desktop must be Java 11?

igordmn commented 3 years ago

@igordmn why does the minimal version for desktop must be Java 11?

This is our decision for desktop - to support only Java 11+. https://github.com/JetBrains/compose-jb/tree/master/tutorials/Getting_Started#prerequisites

AlexeyTsvetkov commented 3 years ago

I don't understand the rationale behind this, and what exactly is required. Should we limit Kotlin JVM target bytecode version or Java compile target version? Or is it about runtime JDK?

igordmn commented 3 years ago

It is about runtime JDK.

We can use features which was only introduced in Java 11.