David Herman
10/15/2021, 5:53 PMjava.lang.AssertionError: No such value argument slot in IrCallImpl: 4 (total=4).
So my question: Am I just publishing my library wrong? (Because with multiplatform, maven-publish just worked, but with Kotlin/JS, I'm setting it up myself). Or is this a fundamental requirement of all Compose library artifacts that they need to be multiplatform modules, for technical reasons behind the scenes that require a common artifact AND a JS artifact be created?David Herman
10/15/2021, 5:57 PMplugins {
kotlin("multiplatform")
...
}
kotlin {
js(IR) {
browser()
binaries.executable()
}
sourceSets {
val jsMain by getting {
dependencies {
implementation(compose.web.core)
implementation(compose.runtime)
implementation(project("..."))
}
}
}
}
to this:
plugins {
kotlin("js")
...
}
kotlin {
js(IR) {
browser()
binaries.executable()
}
}
dependencies {
implementation(compose.web.core)
implementation(compose.runtime)
implementation(project("..."))
}
David Herman
10/15/2021, 6:01 PMval kotlinComponent = project.components.findByName("kotlin")
val kotlinSourcesJar = project.tasks.named("kotlinSourcesJar")
if (kotlinComponent != null) {
publications.create("maven", MavenPublication::class.java) {
groupId = project.group.toString()
this.artifactId = artifactId
version = project.version.toString()
from(kotlinComponent)
artifact(kotlinSourcesJar)
}
}
rnett
10/15/2021, 6:04 PMrnett
10/15/2021, 6:07 PMDavid Herman
10/15/2021, 6:08 PMDavid Herman
10/15/2021, 6:08 PMshikasd
10/15/2021, 6:09 PMDavid Herman
10/15/2021, 6:10 PMDavid Herman
10/15/2021, 6:10 PMDavid Herman
10/15/2021, 6:10 PMDavid Herman
10/15/2021, 6:11 PMshikasd
10/15/2021, 6:12 PMDavid Herman
10/15/2021, 6:12 PMDavid Herman
10/15/2021, 6:13 PMshikasd
10/15/2021, 6:13 PMDavid Herman
10/15/2021, 6:13 PMkotlinCompilerPluginClasspath
then. Any example scripts you can link to? (Otherwise, I'll dig)David Herman
10/15/2021, 6:31 PMDavid Herman
10/15/2021, 6:31 PMDavid Herman
10/15/2021, 6:31 PMDavid Herman
10/15/2021, 6:32 PMshikasd
10/15/2021, 10:10 PMDavid Herman
10/15/2021, 10:14 PMDavid Herman
10/16/2021, 12:12 AM