-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Local
Because of this, Realm is incompatible with other Kotlin libraries which have been built targetting a newer JVM version - since it is impossible to inline functions from these libraries then.
I don't think the Realm Gradle plugin should force all compilations to target JVM 1.8, right?
The temporary workaround to overwrite what the Realm Gradle plugin set here is the following:
Unable to find source-code formatter for language: kt. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
project.afterEvaluate { kotlin.target.compilations.all { // use targets if this is a Multiplatform project kotlinOptions.jvmTarget = "17" } }