correct gradle configuration #31
Comments
Can you try the instructions provided in the README? If they work for you I will merge the PR, or adjust it until it is clear. |
Thanks! Now it works. In the beginning I thought that commonMainApi, jvmMainApi, jsMainApi were functions of gradle that were doing some magic instead of 'implementation' but It wasn't so. I will paste here my working build.gradle (in the hope it can be helpful to others)
|
I have pretty much the same build.gradle as @simonegiacomelli . However, I also have the iOS source set, which is combined into iOSMain:
Adding Klock -iosx64 breaks iosarm64 build and vice-versa. |
This is not strictly related to klock; but this is the only library I care to use in a kotlin multiplatform project.
Please could you be more specific where to put:
implementation "com.soywiz:klock:$klockVersion" ?
I struggle to keep up with gradle changes in kotlin multiplatform project...
I'm using default multiplatform project created by intelliJ (JVM/JS).
This is an excerpt from my unique build.gradle:
The text was updated successfully, but these errors were encountered: