[Solved] Another question related to me trying to ...
# eap
l
[Solved] Another question related to me trying to try 1.4-M2 in a project: I get unresolved references for these 2 classes:
org.jetbrains.kotlin.konan.target.Family
and
org.jetbrains.kotlin.konan.target.HostManager
. It's very confusing because IntelliJ sees them in the file
kotlin-compiler-embeddable-1.4-M2.jar
from the
org.jetbrains.kotlin:kotlin-compiler-embeddable:1.4-M2
dependency that I get transitively from the explicit dependency on
org.jetbrains.kotlin:kotlin-gradle-plugin:1.4-M2
, but they're red, and compilation from command line fails (it's a plugin that is an includedBuild). Were these classes kinda removed in a weird way? It was working alright in 1.3. Thanks for your help!
t
*.kts ?
Gradle 6+?
l
Yes, Gradle 6+. Apparently, the dependency I mentioned is no longer exposed by the gradle plugin dependency (probably switched from
api
to
implementation
). Adding
org.jetbrains.kotlin:kotlin-compiler-embeddable:1.4.-M2
and compiling with Kotlin 1.4-M2 as well did the trick. I'm wondering if that was intentional. I think it could break some people that were relying on
HostManager
or other things there.
t
I’m wondering if that was intentional
Looks like logical step
compiler-embeddable
- musn’t be
api
of Gradle plugins