From a79989673a5d8a34331533433abfa7f263271c0e Mon Sep 17 00:00:00 2001 From: "Artem.Pichugin" Date: Wed, 23 Mar 2022 15:08:48 +0300 Subject: [PATCH] PRJ-808 Allow building on Arm Mac --- build.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 3eecc7e25..63c56855c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -23,6 +23,8 @@ */ import org.jetbrains.kotlin.gradle.dsl.KotlinCompile import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompile +import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension +import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin plugins { kotlin("multiplatform") apply false @@ -61,6 +63,10 @@ subprojects { } } +plugins.withType(NodeJsRootPlugin::class.java) { + the().nodeVersion = "16.14.2" +} + if (System.getenv("CHROME_BIN") == null) { gradle.taskGraph.beforeTask { if (name in setOf("jsTest", "jsBrowserTest", "browserTest")) {