So I posted this in <#C0922A726|general> yesterday...
# javascript
a
So I posted this in #general yesterday, but maybe here would be a good idea as well. I am struggling with dependencies in a multi-project, multi-platform (JS and JVM) working with intellij correctly. I have an example repo here: https://github.com/adamsar/kotlin-dependency-bug Basically I would like konform to be usable in
common/commonMain
. What I have right now will build if I include the enableFeaturePreview("GRADLE_METADATA") in
settings.gradle
but will not be detected by intellij. If I do not include it, I can not build. Apologies for the spam for those watching the other channel as well.
v
Sounds pretty strange as Gradle Module Metadata evolved from preview in 6.0 afair, so that shouldn't make a difference. 😕
a
Yeah it's pretty weird. I am using gradle 6.7, and the compilation phase that fails is "compileKotlinMetadata", which I have very little knowledge about
v
In the sample project you are using 6.6, not 6.7
a
Ah, I was running ./gradlew --version and it gives me 6.7
v
o_O
Oh, my fault, sorry, you are right.
Probably confused it with something else
a
I feel like this is just a very silly misconfigured something on my part
For the time being I am going to try to find a similar open project on Github (multi-platform, multi-project) and see if it works on my box.
v
If I clone your project and execute
build
task, it fails
a
On the metadata part?
v
yes
a
Ok, then I guess I will have to do some deeper reading on multiplatform metadata stuff
Thanks.
v
I thought you said with the preview feature enabled it does not fail
a
Sorry it was just inside intellij for that.
Thanks for your help
v
yw, didn't do much
a
OK, after building a few other projects on Github, I believe this is simply an error with the publishing of the konform library to maven.
When I include any well maintained multi-platform library I can get this to run with no problems.
🎉 2