Thread
#multiplatform
    m

    Marc Knaup

    3 years ago
    What am I doing wrong if the JVM version attribute is used for resolving dependencies but when publishing the artifact the attribute is unexpectedly absent from the published
    .module
    ?
    jvm {
    	attributes {
    		attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 7)
    	}
    }
    It does work in another multiplatform library which has multiple JVM targets. Update: Got it. It happens if I dare to call
    subprojects { apply<MavenPublishPlugin>() }
    . Is that a bug in MP or Gradle?
    h0tk3y

    h0tk3y

    3 years ago
    Perhaps it's a Kotlin bug. I can see why that could possibly happen due to execution order of
    maven-publish
    vs
    kotlin-multiplatform
    . Can you please submit a YouTrack issue?
    m

    Marc Knaup

    3 years ago
    h0tk3y

    h0tk3y

    3 years ago
    Thanks!