ankushg
11/16/2021, 8:32 PM"-Xir-per-module"
flag, we get separate files (which is great!)
For local project dependencies, we get filenames like ${rootProject.name}-{project.name}.js
.
From a Maven artifact like org.jetbrains.kotlinx:kotlinx-serialization-core
, we get kotlinx-serialization-kotlinx-serialization-core.js
I’m assuming the kotlinx-serialization
prefix is because that's also the rootProject.name
in the kotlinx.serialization
repo (and this lines up with the other artifacts). But I can't figure out how to get that prefix programatically. Instead, I'm stuck hardcoding values for all our external dependencies.
Is there a way to get that prefix for a Kotlin/JS maven artifact within Gradle?
If there isn't a way to get that prefix programatically, using rootProject.name
(instead of group
) makes it really hard to interact with those files in an automated fashion…ankushg
11/17/2021, 8:14 PM