https://kotlinlang.org logo
Title
b

BorzdeG

10/03/2018, 11:59 AM
Tell me, what is not configured in the project https://github.com/BorzdeG/example-hello-multiplatform? When I run “./gradlew clean check” I get the error:
> Task :hello-other-common:jar
e: .../hello-other-jvm/src/main/kotlin/hello/other/jvm/HelloOtherData.kt: (3, 21): Unresolved reference: HelloCommonData
e: .../hello-other-jvm/src/main/kotlin/hello/other/jvm/HelloOtherData.kt: (5, 48): Unresolved reference: HelloCommonData
> Task :hello-other-jvm:compileKotlin FAILED
At the same time, there are no errors in IDEA - only during the execution of the code.
b

Burkhard

10/03/2018, 12:07 PM
I think you are missing a dependency to “hello-other-jvm” in “hello-jvm”
b

BorzdeG

10/03/2018, 12:11 PM
“hello-jvm” does not use “hello-other-jvm” - they are used only in “hello-jvm-runners”
b

Burkhard

10/03/2018, 12:17 PM
Woops your right. I misread
HelloCommonData
as
HelloOtherData
.
Can’t help you then. Maybe it’s something todo with
api
in the dependencies. I remember having some problems when switching form the old
compile
to
api
and
implementation
.
n

nfrankel

10/03/2018, 12:21 PM
#gradle?
b

BorzdeG

10/03/2018, 12:22 PM
It seems I figured out the cause of the error. I’ll fix the code now
🎉 1
n

nfrankel

10/03/2018, 2:29 PM
i think this would have been more useful in the #gradle channel
b

BorzdeG

10/03/2018, 2:31 PM
shared #gradle
👍 1