Hi guys! I tried to upgrade my mpp project to Kotl...
# javascript
f
Hi guys! I tried to upgrade my mpp project to Kotlin 1.3.41 and I started getting the following errors.
Copy code
$ ./gradlew :common:client:jsTest --console=plain

> Configure project :common:client
Kotlin Multiplatform Projects are an experimental feature.

> Task :kotlinNodeJsSetup SKIPPED
> Task :common:core:jsProcessResources NO-SOURCE
> Task :kotlinNpmResolve FAILED
> Task :common:client:nodeSetup

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':kotlinNpmResolve'.
> Could not resolve all dependencies for configuration ':common:client:chatapp-client-npm'.
   > Could not find org.jetbrains.kotlin:kotlin-stdlib-common:1.3.41.
     Searched in the following locations: <https://nodejs.org/dist/v1.3.41/kotlin-stdlib-common.jar>
     Required by:
         project :common:client
         project :common:client > project :common:core
   > Could not find org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:0.11.1.
     Searched in the following locations: <https://nodejs.org/dist/v0.11.1/kotlinx-serialization-runtime-common.jar>
     Required by:
         project :common:client
         project :common:client > project :common:core
   > Could not find org.jetbrains.kotlin:kotlin-stdlib-js:1.3.41.
     Searched in the following locations: <https://nodejs.org/dist/v1.3.41/kotlin-stdlib-js.jar>
     Required by:
         project :common:client
         project :common:client > project :common:core
   > Could not find org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:0.11.1.
     Searched in the following locations: <https://nodejs.org/dist/v0.11.1/kotlinx-serialization-runtime-js.jar>
     Required by:
         project :common:client
         project :common:client > project :common:core

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at <https://help.gradle.org>

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See <https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings>

BUILD FAILED in 2s
2 actionable tasks: 2 executed
I was wondering why Gradle is trying to search for jars in
nodejs
? Any hint?
j
I'm no expert, but maybe you're lacking some repositories declaration? It's strange that it looks for nodejs indeed. It may be helpful to share your build file
f
I figured it out! I forgot to remove
gradle-node
plugin stuff from my
build.gradle
. 🙂
Thanks @Joffrey