[Build] Bump gradle-node-plugin version to 3.0.1 to support conf cache

:kotlin-test:kotlin-test-js:kotlin-test-js-it will still have old version as integration test run logic cannot be fully refactored to the new version (approximately till 3.1)
Relates to #KT-44611
This commit is contained in:
Alexander Likhachev
2021-02-09 21:46:54 +03:00
parent 89a78a02d4
commit 0e4e90dc13
5 changed files with 46 additions and 45 deletions
@@ -1,10 +1,10 @@
import com.moowork.gradle.node.yarn.YarnTask
import com.github.gradle.node.yarn.task.YarnTask
description = "Simple Kotlin/JS tests runner with TeamCity reporter"
plugins {
id("base")
id("com.github.node-gradle.node") version "2.2.0"
id("com.github.node-gradle.node") version "3.0.1"
}
publish()
@@ -19,19 +19,20 @@ dependencies {
}
node {
version = "11.9.0"
download = true
nodeModulesDir = projectDir
version.set("11.9.0")
download.set(true)
nodeProjectDir.set(projectDir)
}
tasks {
named("yarn") {
val nodeModulesDir = projectDir.resolve("node_modules")
outputs.upToDateWhen {
projectDir.resolve("node_modules").isDirectory
nodeModulesDir.isDirectory
}
// Without it several yarns can works incorrectly
(this as YarnTask).apply {
args = args + "--network-concurrency" + "1" + "--mutex" + "network"
args.set(args.get() + "--network-concurrency" + "1" + "--mutex" + "network")
}
}
@@ -39,8 +40,8 @@ tasks {
group = "build"
dependsOn("yarn")
setWorkingDir(projectDir)
args = listOf("build")
workingDir.set(projectDir)
args.set(listOf("build"))
inputs.dir("src")
inputs.files(