srs / gradle-node-plugin

Gradle plugin for integrating NodeJS in your build. :rocket:
Apache License 2.0
864 stars 212 forks source link

Update to version 1.2.0 works on Linux, fails on Windows #244

Open daelfdude opened 7 years ago

daelfdude commented 7 years ago

I recently attempted to update the version of both the node and gulp plugins-to-gradle, but found that it broke the build on Windows (though it continued working on Linux) when I did. I looked through the existing Issue List (as well as the documentation) but didn't recognize anything speaking to my situation. The details of what I'm seeing are below.

Gradle version: 3.5 (same behavior for 4.0.1)

Command line: C:\Dev\git\app>.\gradlew -Penvironment=qa --stacktrace clean cleanNode assemble

configuration snippet: node { version '5.8.0' npmVersion '3.8.0' distBaseUrl 'https://nodejs.org/dist' download true workDir file("${project.clientappDir}/nodebin") nodeModulesDir file(project.clientappDir) }

task cleanNode(type: Delete) { delete "${project.clientappDir}/node_modules" delete "${project.clientappDir}/nodebin" }

task gulpBuild(type: GulpTask, dependsOn: ['npmInstall','installGulp']) { doFirst { println ' starting gulp on node' } args = ['build'] }

war { dependsOn gulpBuild .... } Plugin versions which work: id "com.moowork.node" version "1.1.1" id "com.moowork.gulp" version "0.13"

Plugin versions which fail: id "com.moowork.node" version "1.2.0" id "com.moowork.gulp" version "1.2.0"

Output snippet when failing:

Task :caisx:npmSetup 'node' is not recognized as an internal or external command, operable program or batch file.

FAILURE: Build failed with an exception.

view of folder referenced in error message image

srs commented 7 years ago

Thanks for reporting. Marking this as a bug.

Albert-Gao commented 6 years ago

Any updates on this? Got this error too.