files uploaded for this package prior to Kotlin 1.4.20? (e.g. here). If there is no
jar
then it's ok to not have
sources.jar
.
2. Why there is no
sources.jar
uploaded in this case. Sources are uploaded fine for other non-root packages, e.g. the decompose-jvm.
👀 1
s
Shan
12/21/2020, 11:09 PM
I believe no sources jar is a bug with kotlin multiplatform & kotlin 1.4.21. I was able to include the sources jar manually to my common target by appending the artifact generated by
metadataSourceJar
gradle task in the publishing config
Copy code
val kotlinMultiplatform by getting {
artifactId = "project-id"
artifact(tasks.getByName("metadataSourcesJar")) {
classifier = "sources"
}
}