You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the newest version, when I try to run gradle npmSetup, the following error occurs:
> Could not find method execOverrides() for arguments [build_13tmtfk6heqf6fa4c13hvdop7$_run_closure3$_closure30$_closure39@1c0d19ca] on task ':webclient:npmSetup' of type com.moowork.gradle.node.npm.NpmSetupTask.
Was this functionality or capability removed for a reason? If not, would it be possible to add back in a way to configure execOverrides on an NpmSetupTask (so these could be passed internally to the NpmExecRunner or configured)?
The text was updated successfully, but these errors were encountered:
@srs I'm confused what you mean by complete example?
My original post shows how we are trying to provide execOverrides for the npmSetup task. However, npmSetup no longer exposes or supports execOverrides configuration. We are doing this so we can squelch NPM output which we don't need in our gradle output unless an error occurs.
Something as simple as:
npmSetup {
execOverrides {
}
}
should cause the error since execOverrides is not defined anymore on the NpmSetupTask.
Error output:
* What went wrong:
A problem occurred evaluating project ':webclient'.
> Could not find method execOverrides() for arguments [build_89gbdgndlf88e5p5k8082bhzi$_run_closure3$_closure28$_closure37@11336498] on task ':webclient:npmSetup' of type com.moowork.gradle.node.npm.NpmSetupTask.
We have recently upgraded from the old mooworks
gulp
andnode
plugins to the latest single "repo" version.In our old setup, we liked to squelch NPM, Node, and Gulp tasks unless they failed with the following:
build.gradle
In the newest version, when I try to run
gradle npmSetup
, the following error occurs:When I look at the current source I see that
NpmSetupTask
uses an internalNpmExecRunner
(https://github.com/srs/gradle-node-plugin/blob/master/src/main/groovy/com/moowork/gradle/node/npm/NpmSetupTask.groovy#L83), but does not provide a way to configure that ExecRunner other than passingargs
.Was this functionality or capability removed for a reason? If not, would it be possible to add back in a way to configure
execOverrides
on anNpmSetupTask
(so these could be passed internally to the NpmExecRunner or configured)?The text was updated successfully, but these errors were encountered: