https://kotlinlang.org logo
Title
m

mbonnin

02/02/2023, 11:12 AM
I'm trying to reproduce a bug with
*compileKotlinMetadata*
. In my task list, I have this:
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
kotlin.mpp.enableCompatibilityMetadataVariant=true
j

John O'Reilly

02/02/2023, 3:19 PM
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

mbonnin

02/02/2023, 3:21 PM
👀
Let me try
My Bug is still there
I guess I can just disable
enableCompatibilityMetadataVariant
, most multiplatform projects should have HMPP now
s

Sebastian Sellmair [JB]

02/02/2023, 7:02 PM
Please disable this, yes; we will drop support for it pretty soon!
j

Jeff Lockhart

02/03/2023, 12:18 AM
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.