22 * Copyright (c) 2023-2024 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
33 */
44
5- import org.jetbrains.kotlin.gradle.targets.js.dsl.*
6- import org.jetbrains.kotlin.gradle.targets.js.nodejs.*
7- import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin.Companion.kotlinNodeJsExtension
8- import org.jetbrains.kotlin.gradle.targets.js.npm.tasks.*
5+ import org.jetbrains.kotlin.gradle.*
96
107plugins {
11- kotlin(" multiplatform" ) version " 1.9.22 "
8+ kotlin(" multiplatform" ) version " 2.0.20 "
129}
1310
1411kotlin {
@@ -57,12 +54,12 @@ kotlin {
5754 }
5855 commonTest.dependencies {
5956 implementation(kotlin(" test" ))
60- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8 .0" )
57+ implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9 .0" )
6158 }
6259 jsMain.dependencies {
6360 implementation(cryptographyLibs.provider.webcrypto)
6461 }
65- named( " wasmJsMain" ) .dependencies {
62+ wasmJsMain.dependencies {
6663 implementation(cryptographyLibs.provider.webcrypto)
6764 }
6865 jvmMain.dependencies {
@@ -73,14 +70,3 @@ kotlin {
7370 }
7471 }
7572}
76-
77- // node version with WASM support
78- plugins.withType<NodeJsRootPlugin > {
79- kotlinNodeJsExtension.apply {
80- nodeVersion = " 21.0.0-v8-canary202310177990572111"
81- nodeDownloadBaseUrl = " https://nodejs.org/download/v8-canary"
82- }
83- tasks.withType<KotlinNpmInstallTask >().configureEach {
84- args.add(" --ignore-engines" )
85- }
86- }
0 commit comments