From 022860498064beeb82178647e47d7d9b74b90696 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Wed, 11 Mar 2020 07:55:11 +0000 Subject: [PATCH] use com.github.node-gradle.node instead of com.moowork.node moowork is no longer maintained and does not work with gradle 6 --- pdb-js/.gitignore | 1 + pdb-js/build.gradle | 12 +++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/pdb-js/.gitignore b/pdb-js/.gitignore index cd5f1b5..779bcdd 100644 --- a/pdb-js/.gitignore +++ b/pdb-js/.gitignore @@ -4,6 +4,7 @@ /build /bin /tmp +/.gradle/ /out-tsc # Only exists if Bazel was run /bazel-out diff --git a/pdb-js/build.gradle b/pdb-js/build.gradle index 9aa63eb..c843058 100644 --- a/pdb-js/build.gradle +++ b/pdb-js/build.gradle @@ -1,14 +1,13 @@ plugins { - id "com.moowork.node" version "1.3.1" + id("com.github.node-gradle.node") version "2.2.1" } -apply plugin: 'com.moowork.node' node { // Version of node to use. //version = '0.11.10' - version = '12.15.0' + version = '13.10.1' // Version of npm to use. //npmVersion = '7.1.0' @@ -35,6 +34,8 @@ node { // Set the work directory where node_modules should be located //nodeModulesDir = file("${project.projectDir}") + + download=true } sourceSets { @@ -64,3 +65,8 @@ jar { dependencies { } + +task myScript(type: NodeTask) { + script = file('src/scripts/my.js') + args = ['arg1', 'arg2'] +}