use com.github.node-gradle.node instead of com.moowork.node

moowork is no longer maintained and does not work with gradle 6
This commit is contained in:
2020-03-11 07:55:11 +00:00
parent 9aa4cb39ae
commit 0228604980
2 changed files with 10 additions and 3 deletions

1
pdb-js/.gitignore vendored
View File

@@ -4,6 +4,7 @@
/build /build
/bin /bin
/tmp /tmp
/.gradle/
/out-tsc /out-tsc
# Only exists if Bazel was run # Only exists if Bazel was run
/bazel-out /bazel-out

View File

@@ -1,14 +1,13 @@
plugins { 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 { node {
// Version of node to use. // Version of node to use.
//version = '0.11.10' //version = '0.11.10'
version = '12.15.0' version = '13.10.1'
// Version of npm to use. // Version of npm to use.
//npmVersion = '7.1.0' //npmVersion = '7.1.0'
@@ -35,6 +34,8 @@ node {
// Set the work directory where node_modules should be located // Set the work directory where node_modules should be located
//nodeModulesDir = file("${project.projectDir}") //nodeModulesDir = file("${project.projectDir}")
download=true
} }
sourceSets { sourceSets {
@@ -64,3 +65,8 @@ jar {
dependencies { dependencies {
} }
task myScript(type: NodeTask) {
script = file('src/scripts/my.js')
args = ['arg1', 'arg2']
}