-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
com.moowork.node plugin throwing error when i try ./gradlew build #376
Comments
Error Stack Trace
BUILD FAILED in 499ms |
You'll have to downgrade your Gradle version to use this plugin as it is currently unmaintained, there's a fork (without the grunt/gulp support) and the full history is available at this issue #315 |
Thanks for the suggestion. |
Hi,
I am getting the below error related to this plugin when i try to build node app using gradle. I am using Java 11 and remaining versions of packages as mentioned below. Please suggest the fix as i am stuck with this issue. I am using Gradle 6.8.
build.gradle
----------------
plugins {
//inlude the nodeJS plugin to execute nodejs and npm tasks
id "com.moowork.node" version "1.3.1"
// id "com.moowork.node"
}
node {
download = true
version = "9.11.1"
npmVersion = "5.6.0"
}
repositories.whenObjectAdded {
if (it instanceof IvyArtifactRepository) {
metadataSources {
artifact()
}
}
}
//declare a build task
task build(type: npm_build) {
}
//declare a task to create a zip of the app
task zip(type: Zip) {
from ('.') {
include "*"
include "bin/"
include "data/"
include "node_modules/"
include "public/"
include "routes/"
include "views/"
}
destinationDir(file("dist"))
baseName "trainSchedule"
}
//declare task dependencies
build.dependsOn zip
zip.dependsOn npm_build
npm_build.dependsOn npm_test
npm_test.dependsOn npmInstall
npm_build.dependsOn npmInstall
Error Info
-------------
./gradlew build
FAILURE: Build failed with an exception.
Where:
Build file '/home/srikanth/practice/cicd-pipeline-train-schedule-jenkins/build.gradle' line: 23
What went wrong:
A problem occurred evaluating root project 'cicd-pipeline-train-schedule-jenkins'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 541ms
The text was updated successfully, but these errors were encountered: