https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
m

Marc Knaup

07/10/2019, 9:29 PM
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

h0tk3y

07/10/2019, 11:19 PM
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

07/10/2019, 11:49 PM
h

h0tk3y

07/10/2019, 11:59 PM
Thanks!
3 Views