Hadi Lashkari
09/07/2020, 9:33 AMkotlin.mpp.enableGranularSourceSetsMetadata=true
in gradle.properties
as you can find in https://kotlinlang.org/docs/reference/mpp-share-on-platforms.html#share-code-on-similar-platforms, but as a side effect, android source set is not included in the publication! How can I publish for android then? My project is https://github.com/hadilq/log4k/ if it helps. Thanksaudriusk
09/07/2020, 10:02 AMHadi Lashkari
09/07/2020, 10:08 AMkotlin.mpp.enableGranularSourceSetsMetadata
! if you mean using publishLibraryVariants("release", "debug")
I used it before and I switched to publishAllLibraryVariants()
and it was working! After I add kotlin.mpp.enableGranularSourceSetsMetadata
it's not publishing for android anymore! Any idea?louiscad
09/08/2020, 11:39 AMrusshwolf
09/08/2020, 2:23 PMkotlin.native.enableDependencyPropagation=false
on that project which I keep meaning to go back and build a minimal sample forHadi Lashkari
09/08/2020, 2:28 PMrusshwolf
09/08/2020, 2:29 PMHadi Lashkari
09/08/2020, 2:43 PMNo matching variant of com.github.hadilq:log4k-metadata:2.3.1-SNAPSHOT:20200908.145840-4 was found.
! Problem! And removing it still make that problem whenever I add implementation(log4k) in gradle.build.kts
file of another multiplatform module!louiscad
09/08/2020, 4:17 PMHadi Lashkari
09/08/2020, 5:50 PMjvmMain
and androidMain
directories, just commonMain
! I have to say it had all these three directories before above commit! For instance, https://oss.sonatype.org/content/repositories/snapshots/com/github/hadilq/log4k-android/2.3.1-SNAPSHOT/log4k-android-2.3.1-20200907.155234-1-sources.jar Any idea?russhwolf
09/08/2020, 8:33 PMHadi Lashkari
09/09/2020, 7:26 AM