https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
t

timm

12/13/2018, 1:15 PM
h

Hauke Radtki

12/13/2018, 1:19 PM
Actual compiler output would be helpful
t

timm

12/13/2018, 1:20 PM
I just found out that it actually compiles in gradle... just not in IDEA somehow
h

Hauke Radtki

12/13/2018, 1:21 PM
From the project structure I just saw that you want to have additional java tests. Is there a specific reason why?
t

timm

12/13/2018, 1:22 PM
We are migrating a library to a kotlin mpp, but we have to stay compatible with the java version so we would like to run our existing java tests against the migrated lib
h

Hauke Radtki

12/13/2018, 1:25 PM
Sounds reasonable. Until now I thought pure java tests were not possible in mpp. And thats probably also what is happening, gradle picks up your tests as a separate source set (which should work fine I guess).
But maybe you can add the test/java folder to the jvm source sets
t

timm

12/13/2018, 1:28 PM
as in
kotlin.sourceSets.jvmTest.kotlin.srcDirs += "src/test/java"
?
h

Hauke Radtki

12/13/2018, 1:55 PM
Yeah, does it work? I never used the jvmWithJava target, but that would be my idea
9 Views