With Kotlin 2.1.0 new
Support for non-packed klibs feature is introduced. Since I'm using lib which hasn't migrate to latest Kotlin version, I need to revert this behavior to old one. From docs, it seems that I only need do this:
import org.jetbrains.kotlin.gradle.plugin.attributes.KlibPackaging
val resolvableConfiguration = configurations.resolvable("resolvable") {
attributes.attribute(KlibPackaging.ATTRIBUTE, project.objects.named(KlibPackaging.PACKED))
}
But, if I run this my issue is still here. Exactly, problem is
this. For reference, I'm working on KMP project.
So, my questions are:
⢠Is this code snippet only change I need to do or I need to apply
resolvableConfiguration
somewhere?
⢠In which gradle file I need to do it (
project
or
module
level)?