[Wasm] Use Node.js with canary v8 that supports recent Wasm GC changes
It's required to run wasm stdlib tests and compiler box tests with WASI. #KT-59720
This commit is contained in:
committed by
Space Team
parent
8a6fdf2493
commit
59a9855373
+19
@@ -1,5 +1,6 @@
|
||||
import java.net.URI
|
||||
import org.jetbrains.kotlin.gradle.targets.js.d8.D8RootExtension
|
||||
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
|
||||
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension
|
||||
import org.spdx.sbom.gradle.SpdxSbomExtension
|
||||
|
||||
@@ -56,6 +57,24 @@ tasks.register("resolveDependencies") {
|
||||
)
|
||||
}
|
||||
|
||||
rootProject.extensions.findByType<NodeJsRootExtension>()?.run {
|
||||
project.resolveDependencies(
|
||||
"org.nodejs:node:$nodeVersion:linux-x64@tar.gz",
|
||||
"org.nodejs:node:$nodeVersion:win-x64@zip",
|
||||
"org.nodejs:node:$nodeVersion:darwin-x64@tar.gz",
|
||||
"org.nodejs:node:$nodeVersion:darwin-arm64@tar.gz"
|
||||
) {
|
||||
ivy {
|
||||
url = URI(nodeDownloadBaseUrl)
|
||||
patternLayout {
|
||||
artifact("v[revision]/[artifact](-v[revision]-[classifier]).[ext]")
|
||||
}
|
||||
metadataSources { artifact() }
|
||||
content { includeModule("org.nodejs", "node") }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.extensions.findByType<YarnRootExtension>()?.run {
|
||||
project.resolveDependencies("com.yarnpkg:yarn:$version@tar.gz") {
|
||||
ivy {
|
||||
|
||||
@@ -38,7 +38,6 @@ private object NodeJsUtils {
|
||||
|
||||
fun useNodeJsPlugin(project: Project) {
|
||||
nodeJsPlugin = NodeJsRootPlugin.apply(project.rootProject)
|
||||
nodeJsPlugin.nodeVersion = project.nodejsVersion
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user