Christian Dräger
12/30/2024, 3:46 PM* What went wrong:
Could not determine the dependencies of task ':kotlinNpmInstall'.
> Could not resolve all dependencies for configuration ':client-kt:jsNpmAggregated'.
> Could not find codes.draeger:kotlin-library-template-core-js:0.1.0-SNAPSHOT.
Searched in the following locations:
- file:/Users/A200296237/.m2/repository/codes/draeger/kotlin-library-template-core-js/0.1.0-SNAPSHOT/maven-metadata.xml
- file:/Users/A200296237/.m2/repository/codes/draeger/kotlin-library-template-core-js/0.1.0-SNAPSHOT/kotlin-library-template-core-js-0.1.0-SNAPSHOT.pom
- <https://repo.maven.apache.org/maven2/codes/draeger/kotlin-library-template-core-js/0.1.0-SNAPSHOT/maven-metadata.xml>
- <https://repo.maven.apache.org/maven2/codes/draeger/kotlin-library-template-core-js/0.1.0-SNAPSHOT/kotlin-library-template-core-js-0.1.0-SNAPSHOT.pom>
Required by:
project :client-kt
what am i doing wrong?
here is my library template code:
https://github.com/christian-draeger/kotlin-library-template
code where i tryed to use it:
https://github.com/christian-draeger/Korpus (client-kt) module in jsMain dependenciesChrimaeon
12/30/2024, 4:29 PMjs
in your template project.Christian Dräger
12/30/2024, 4:35 PMChrimaeon
12/30/2024, 4:37 PMkotlin {
jvm()
js()
}
in https://github.com/christian-draeger/kotlin-library-template/blob/e8044bbe05979838903a994da522681d62c2c2b0/build.gradle.kts#L15
same as in the consuming projectChrimaeon
12/30/2024, 4:39 PMChristian Dräger
12/30/2024, 5:13 PMNot choosing any of them will be an error in the future releases.
kotlin {
js {
// To build distributions for and run tests on browser or Node.js use one or both of:
browser()
nodejs()
}
}
which should i choose in my case?Chrimaeon
12/30/2024, 5:27 PMChristian Dräger
12/30/2024, 6:15 PMephemient
12/30/2024, 6:38 PMChrimaeon
12/30/2024, 7:15 PMChristian Dräger
12/30/2024, 7:42 PMChrimaeon
12/30/2024, 7:48 PM