What am I doing wrong if the JVM version attribute...
# multiplatform
m
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
?
Copy code
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?
h
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
h
Thanks!