I'm trying to reproduce a bug with `*compileKotlin...
# multiplatform
m
I'm trying to reproduce a bug with
*compileKotlinMetadata*
. In my task list, I have this:
Copy code
compileCommonMainKotlinMetadata - Compiles the kotlin sources in compilation 'commonMain' (target metadata (common)) to Metadata.
compileKotlinMetadata - Compiles the kotlin sources in compilation 'main' (target metadata (common)) to Metadata.
What's the difference between these two? I don't have any 'main' sourceSet that I know about
Usual thing, I find the answer a few minutes after asking the question 😅 rubber duck Looks like it's related to
Copy code
kotlin.mpp.enableCompatibilityMetadataVariant=true
j
just saw Kotlin 1.8.10 was released and included fix for following.....just on off chance it's related to what you were looking at 🙂 https://youtrack.jetbrains.com/issue/KT-55730
m
👀
Let me try
My Bug is still there
I guess I can just disable
enableCompatibilityMetadataVariant
, most multiplatform projects should have HMPP now
s
Please disable this, yes; we will drop support for it pretty soon!
j
Thanks for sharing because I ran into this a while back after updating a dependency and didn't find a solution at the time. After removing
enableCompatibilityMetadataVariant
it works with the newer dependency version.