[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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user