I have the following build.gradle in an angular project:
plugins {
id 'war'
}
task npmInstall(type:Exec)
commandLine "npm.cmd", "install", "@angular/cli"
}
task npmBuild(type: Exec) {
commandLine "npm.cmd", "run", "build"
}
task war.dependsOn(npmInstall, npmBuild)
but when I run the war task the npmBuild and npmInstall are not ran