From c915cc54c7e3f665c6c07d155fa542fdb206218d Mon Sep 17 00:00:00 2001 From: Zalim Bashorov Date: Fri, 15 Sep 2023 14:57:48 +0200 Subject: [PATCH] [Wasm] Use Node.js with "canary" v8 in gradle mpp tests It's required due to switching to the latest wasm opcodes. #KT-59720 --- .../testProject/new-mpp-wasm-test/build.gradle.kts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/new-mpp-wasm-test/build.gradle.kts b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/new-mpp-wasm-test/build.gradle.kts index ba9f0221ccf..ca04a230a6b 100644 --- a/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/new-mpp-wasm-test/build.gradle.kts +++ b/libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/new-mpp-wasm-test/build.gradle.kts @@ -8,7 +8,9 @@ repositories { } with(org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin.apply(rootProject)) { - nodeVersion = "20.2.0" + // canary nodejs that supports recent Wasm GC changes + nodeVersion = "21.0.0-v8-canary202309167e82ab1fa2" + nodeDownloadBaseUrl = "https://nodejs.org/download/v8-canary" } with(org.jetbrains.kotlin.gradle.targets.js.d8.D8RootPlugin.apply(rootProject)) { @@ -17,6 +19,12 @@ with(org.jetbrains.kotlin.gradle.targets.js.d8.D8RootPlugin.apply(rootProject)) version = (version as String) } +allprojects.forEach { + it.tasks.withType().configureEach { + args.add("--ignore-engines") + } +} + tasks.named("kotlinStoreYarnLock") { //A little hacky way to make yarn results inputFile.fileValue(projectDir.resolve("yarnLockStub"))